mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
aac: Reset PS parameters on header decode failure.
If the next header frame codes zero envelopes the previous frame's values will be used. Consequently the invalid values must be cleared. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
This commit is contained in:
parent
7beec7e29d
commit
a237b38021
@ -275,6 +275,10 @@ int ff_ps_read_data(AVCodecContext *avctx, GetBitContext *gb_host, PSContext *ps
|
|||||||
err:
|
err:
|
||||||
ps->start = 0;
|
ps->start = 0;
|
||||||
skip_bits_long(gb_host, bits_left);
|
skip_bits_long(gb_host, bits_left);
|
||||||
|
memset(ps->iid_par, 0, sizeof(ps->iid_par));
|
||||||
|
memset(ps->icc_par, 0, sizeof(ps->icc_par));
|
||||||
|
memset(ps->ipd_par, 0, sizeof(ps->ipd_par));
|
||||||
|
memset(ps->opd_par, 0, sizeof(ps->opd_par));
|
||||||
return bits_left;
|
return bits_left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user