mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
flacdec: Fix used AVCodecContext
Fixes out of array writes with multiple threads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fa125c5e82
commit
c112e36d41
@ -498,6 +498,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
|
||||
int ret;
|
||||
|
||||
*got_frame_ptr = 0;
|
||||
s->avctx = avctx;
|
||||
|
||||
if (s->max_framesize == 0) {
|
||||
s->max_framesize =
|
||||
|
Loading…
Reference in New Issue
Block a user