Mercurial > libavcodec.hg
changeset 7387:dee39446a364 libavcodec
Remove redundant h->mmco_index= 0.
author | michael |
---|---|
date | Fri, 25 Jul 2008 12:02:45 +0000 |
parents | 00b1f0ecb386 |
children | d2d876733e9e |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Fri Jul 25 11:54:03 2008 +0000 +++ b/h264.c Fri Jul 25 12:02:45 2008 +0000 @@ -3633,9 +3633,7 @@ 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) - h->mmco_index= 0; - else{ + if(h->mmco[0].long_arg != -1){ h->mmco[0].opcode= MMCO_LONG; h->mmco_index= 1; } @@ -3683,8 +3681,7 @@ h->mmco[1].short_pic_num= h->mmco[0].short_pic_num + 1; h->mmco_index= 2; } - }else - h->mmco_index= 0; + } } }