diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-09-06 03:36:38 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-09-06 03:36:38 +0000 |
commit | 1ddcd07fda62291b48ef328802ce0de42023e7f4 (patch) | |
tree | 6a7ab85c296ccf8ea111c270aed51bb3c4884b58 | |
parent | 13a579fc0c804d4955db342aa4d376a622681638 (diff) | |
download | ffmpeg-1ddcd07fda62291b48ef328802ce0de42023e7f4.tar.gz |
Set correct length for last slice in frame subpacket
Originally committed as revision 10420 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rmdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 40e3462dea..47f7cf11a4 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -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; |