[FFmpeg-cvslog] r14387 - trunk/libavcodec/h264.c

michael subversion
Fri Jul 25 14:12:26 CEST 2008


Author: michael
Date: Fri Jul 25 14:12:25 2008
New Revision: 14387

Log:
Simplify mmco setup code used in IDR pictures.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Fri Jul 25 14:12:25 2008
@@ -3632,9 +3632,9 @@ static int decode_ref_pic_marking(H264Co
     h->mmco_index= 0;
     if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
         s->broken_link= get_bits1(gb) -1;
-        h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx
-        if(h->mmco[0].long_arg != -1){
+        if(get_bits1(gb)){
             h->mmco[0].opcode= MMCO_LONG;
+            h->mmco[0].long_arg= 0;
             h->mmco_index= 1;
         }
     }else{




More information about the ffmpeg-cvslog mailing list