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

kostya subversion at mplayerhq.hu
Fri Aug 3 19:25:21 CEST 2007


Author: kostya
Date: Fri Aug  3 19:25:21 2007
New Revision: 600

Log:
Distinguish between P- and B-frames

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Fri Aug  3 19:25:21 2007
@@ -1038,7 +1038,7 @@ static int rv40_decode_frame(AVCodecCont
             r->bits = r->prev_si.size;
             r->block_start = r->prev_si.start;
             s->mb_num_left = r->prev_si.end - r->prev_si.start;
-            s->pict_type = r->prev_si.type ? P_TYPE : I_TYPE;
+            s->pict_type = r->prev_si.type ? r->prev_si.type : I_TYPE;
             rv40_decode_slice(r);
             r->slice_data = NULL;
         }
@@ -1072,7 +1072,7 @@ static int rv40_decode_frame(AVCodecCont
         r->bits = r->prev_si.size;
         r->block_start = r->prev_si.start;
         s->mb_num_left = r->prev_si.end - r->prev_si.start;
-        s->pict_type = r->prev_si.type ? P_TYPE : I_TYPE;
+        s->pict_type = r->prev_si.type ? r->prev_si.type : I_TYPE;
         rv40_decode_slice(r);
     }
 



More information about the FFmpeg-soc mailing list