[FFmpeg-soc] [soc]: r894 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Thu Aug 16 18:56:44 CEST 2007


Author: kostya
Date: Thu Aug 16 18:56:44 2007
New Revision: 894

Log:
Do not change slice end if the next slice is incorrect

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Thu Aug 16 18:56:44 2007
@@ -1422,7 +1422,8 @@ static int rv40_decode_frame(AVCodecCont
             if(i+1 < avctx->slice_count){
                 init_get_bits(&s->gb, buf+avctx->slice_offset[i+1], (buf_size-avctx->slice_offset[i+1])*8);
                 rv40_parse_slice_header(r, &r->s.gb, &si);
-                r->prev_si.end = si.start;
+                if(si.type != -1)
+                    r->prev_si.end = si.start;
             }
             r->slice_data = buf + offset;
             r->cur_vlcs = choose_vlc_set(r->prev_si.quant, r->prev_si.vlc_set, r->prev_si.type);



More information about the FFmpeg-soc mailing list