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

kostya subversion at mplayerhq.hu
Wed Aug 29 19:25:12 CEST 2007


Author: kostya
Date: Wed Aug 29 19:25:11 2007
New Revision: 1243

Log:
Call correct _parse_slice_header() to determine slice end

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Wed Aug 29 19:25:11 2007
@@ -2194,13 +2194,15 @@ static int rv40_decode_frame(AVCodecCont
         r->si.end = s->mb_width * s->mb_height;
         if(i+1 < slice_count){
             init_get_bits(&s->gb, buf+slice_offset[i+1], (buf_size-slice_offset[i+1])*8);
-            if(rv40_parse_slice_header(r, &r->s.gb, &si) < 0){
+            if(!r->rv30 && rv40_parse_slice_header(r, &r->s.gb, &si) < 0){
                 if(i+2 < slice_count)
                     size = slice_offset[i+2] - offset;
                 else
                     size = buf_size - offset;
                 r->si.size = size * 8;
-            }else
+            }else if(!r->rv30)
+                r->si.end = si.start;
+            if(r->rv30 && rv30_parse_slice_header(r, &r->s.gb, &si) >= 0)
                 r->si.end = si.start;
         }
         r->slice_data = buf + offset;



More information about the FFmpeg-soc mailing list