Commit 490ad6ea authored by kostya's avatar kostya

Set correct length for last slice in frame subpacket

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10420 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5c162d31
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment