Skip to content
Snippets Groups Projects
Commit c112e36d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

flacdec: Fix used AVCodecContext


Fixes out of array writes with multiple threads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent fa125c5e
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment