Commit c112e36d authored by Michael Niedermayer's avatar Michael Niedermayer

flacdec: Fix used AVCodecContext

Fixes out of array writes with multiple threads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fa125c5e
...@@ -498,6 +498,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data, ...@@ -498,6 +498,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
int ret; int ret;
*got_frame_ptr = 0; *got_frame_ptr = 0;
s->avctx = avctx;
if (s->max_framesize == 0) { if (s->max_framesize == 0) {
s->max_framesize = s->max_framesize =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment