diff h264.c @ 7388:d2d876733e9e libavcodec

Simplify mmco setup code used in IDR pictures.
author michael
date Fri, 25 Jul 2008 12:12:25 +0000
parents dee39446a364
children 8ef2e8f077ff
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 12:02:45 2008 +0000
+++ b/h264.c	Fri Jul 25 12:12:25 2008 +0000
@@ -3632,9 +3632,9 @@
     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{