diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 11:48:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-25 11:48:32 +0000 |
commit | d9fe1749fc1009b14252030dda9142de624670c0 (patch) | |
tree | 35e90ff3f485dd122258386fd0f97d677b56c81c /libavcodec/h264.c | |
parent | 14b83f9a3dc8ea593de6cc70a93964a5daac3643 (diff) | |
download | ffmpeg-d9fe1749fc1009b14252030dda9142de624670c0.tar.gz |
Make sure mmco index is 0 (instead of uninitialized) in all error returns.
Originally committed as revision 14383 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index cfa63d62aa..d2566e4bbe 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3625,6 +3625,7 @@ static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){ MpegEncContext * const s = &h->s; int i; + 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 |