changeset 2532:5faceca0b5d6 libavformat

Set correct length for last slice in frame subpacket
author kostya
date Thu, 06 Sep 2007 03:36:38 +0000
parents d126dc8b628c
children 5f44093c0cdc
files rmdec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;