mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
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
This commit is contained in:
parent
14b83f9a3d
commit
d9fe1749fc
@ -3625,6 +3625,7 @@ static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){
|
|||||||
MpegEncContext * const s = &h->s;
|
MpegEncContext * const s = &h->s;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
h->mmco_index= 0;
|
||||||
if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
|
if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
|
||||||
s->broken_link= get_bits1(gb) -1;
|
s->broken_link= get_bits1(gb) -1;
|
||||||
h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx
|
h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx
|
||||||
|
Loading…
Reference in New Issue
Block a user