diff rmdec.c @ 2532:5faceca0b5d6 libavformat

Set correct length for last slice in frame subpacket
author kostya
date Thu, 06 Sep 2007 03:36:38 +0000
parents 8f90908f3c31
children ecd8a9aa182d
line wrap: on
line diff
--- a/rmdec.c	Wed Sep 05 20:42:17 2007 +0000
+++ b/rmdec.c	Thu Sep 06 03:36:38 2007 +0000
@@ -510,6 +510,8 @@
             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;