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 =