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:
Michael Niedermayer 2013-06-13 22:11:07 +02:00
parent fa125c5e82
commit c112e36d41

View File

@ -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 =