Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7387:dee39446a364 | 7388:d2d876733e9e |
---|---|
3630 int i; | 3630 int i; |
3631 | 3631 |
3632 h->mmco_index= 0; | 3632 h->mmco_index= 0; |
3633 if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields | 3633 if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields |
3634 s->broken_link= get_bits1(gb) -1; | 3634 s->broken_link= get_bits1(gb) -1; |
3635 h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx | 3635 if(get_bits1(gb)){ |
3636 if(h->mmco[0].long_arg != -1){ | |
3637 h->mmco[0].opcode= MMCO_LONG; | 3636 h->mmco[0].opcode= MMCO_LONG; |
3637 h->mmco[0].long_arg= 0; | |
3638 h->mmco_index= 1; | 3638 h->mmco_index= 1; |
3639 } | 3639 } |
3640 }else{ | 3640 }else{ |
3641 if(get_bits1(gb)){ // adaptive_ref_pic_marking_mode_flag | 3641 if(get_bits1(gb)){ // adaptive_ref_pic_marking_mode_flag |
3642 for(i= 0; i<MAX_MMCO_COUNT; i++) { | 3642 for(i= 0; i<MAX_MMCO_COUNT; i++) { |