[FFmpeg-cvslog] r17136 - trunk/libavcodec/cavsdec.c

stefang subversion
Tue Feb 10 18:08:56 CET 2009


Author: stefang
Date: Tue Feb 10 18:08:56 2009
New Revision: 17136

Log:
fix parsing of pic_structure

Modified:
   trunk/libavcodec/cavsdec.c

Modified: trunk/libavcodec/cavsdec.c
==============================================================================
--- trunk/libavcodec/cavsdec.c	Tue Feb 10 17:45:02 2009	(r17135)
+++ trunk/libavcodec/cavsdec.c	Tue Feb 10 18:08:56 2009	(r17136)
@@ -499,9 +499,10 @@ static int decode_pic(AVSContext *h) {
     if(s->low_delay)
         get_ue_golomb(&s->gb); //bbv_check_times
     h->progressive             = get_bits1(&s->gb);
-    if(h->progressive)
-        h->pic_structure = 1;
-    else if(!(h->pic_structure = get_bits1(&s->gb) && (h->stc == PIC_PB_START_CODE)) )
+    h->pic_structure = 1;
+    if(!h->progressive)
+        h->pic_structure = get_bits1(&s->gb);
+    if(!h->pic_structure && h->stc == PIC_PB_START_CODE)
         skip_bits1(&s->gb);     //advanced_pred_mode_disable
     skip_bits1(&s->gb);        //top_field_first
     skip_bits1(&s->gb);        //repeat_first_field




More information about the ffmpeg-cvslog mailing list