diff --git a/libavcodec/faad.c b/libavcodec/faad.c index 05f6a2be75..b2903819a4 100644 --- a/libavcodec/faad.c +++ b/libavcodec/faad.c @@ -116,6 +116,9 @@ static int faac_init_mp4(AVCodecContext *avctx) if (r < 0) av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d sr:%ld ch:%ld s:%d\n", r, samplerate, (long)channels, avctx->extradata_size); + avctx->sample_rate = samplerate; + avctx->channels = channels; + return r; }