summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-25 12:12:25 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-25 12:12:25 +0000
commitc72509000491c53f93e758abee4f6a5a3fb99955 (patch)
treed09ac8aa4497815913f0ca501b5afa8531e4c414 /libavcodec/h264.c
parent57288c4a066e2336e1df749a009f5df63d017e96 (diff)
Simplify mmco setup code used in IDR pictures.
Originally committed as revision 14387 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 093304c1f8..262030025d 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3632,9 +3632,9 @@ static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){
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{