1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Set correct length for last slice in frame subpacket

Originally committed as revision 10420 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2007-09-06 03:36:38 +00:00
parent 13a579fc0c
commit 1ddcd07fda

View File

@ -510,6 +510,8 @@ resync:
rm->current_stream= st->id;
// av_log(NULL, AV_LOG_DEBUG, "%X len:%d pos:%d len2:%d pic_num:%d\n",h, len, pos, len2, pic_num);
if((h & 0xc0) == 0x80)
len=pos;
if(len2 && len2<len)
len=len2;
rm->remaining_len-= len;