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>
pull/25/head
Michael Niedermayer 12 years ago
parent fa125c5e82
commit c112e36d41
  1. 1
      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 =

Loading…
Cancel
Save