From c112e36d41da5eb25af3230e2365737759e75375 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 13 Jun 2013 22:11:07 +0200 Subject: [PATCH] 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 --- libavcodec/flacdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 2d3e4b3f70..a0c950bdde 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -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 =