diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 12:02:45 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 12:02:45 +0000 |
commit | 57288c4a066e2336e1df749a009f5df63d017e96 (patch) | |
tree | f4667873275924d30e8332e61328f80da7feeda1 /libavcodec/h264.c | |
parent | 5118c6c771b64afac7018b0dfaf55c022bb2ad47 (diff) | |
download | ffmpeg-57288c4a066e2336e1df749a009f5df63d017e96.tar.gz |
Remove redundant h->mmco_index= 0.
Originally committed as revision 14386 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 368ce352fa..093304c1f8 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3633,9 +3633,7 @@ static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){ 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 @@ static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){ h->mmco[1].short_pic_num= h->mmco[0].short_pic_num + 1; h->mmco_index= 2; } - }else - h->mmco_index= 0; + } } } |