From 1ddcd07fda62291b48ef328802ce0de42023e7f4 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 6 Sep 2007 03:36:38 +0000 Subject: Set correct length for last slice in frame subpacket Originally committed as revision 10420 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rmdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') 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 && len2remaining_len-= len; -- cgit v1.2.3