---
 libavformat/rmdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index c04c93c..cc117de 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -617,7 +617,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, 
AVIOContext *pb,
 
     *pseq = seq;
     if((seq & 0x7F) == 1 || vst->curpic_num != pic_num){
-        vst->slices = ((hdr & 0x3F) << 1) + 1;
+        vst->slices = ((hdr & 0x3F) << 1) + (seq >> 7);
         vst->videobufsize = len2 + 8*vst->slices + 1;
         av_free_packet(&vst->pkt); //FIXME this should be output.
         if(av_new_packet(&vst->pkt, vst->videobufsize) < 0)
-- 
1.7.0.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to