Commit 676a395a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aacdec: Dont fail if channels arent known yet

Fixes Ticket3312
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 31e703e8
......@@ -196,6 +196,9 @@ static int frame_configure_elements(AVCodecContext *avctx)
/* get output buffer */
av_frame_unref(ac->frame);
if (!avctx->channels)
return 1;
ac->frame->nb_samples = 2048;
if ((ret = ff_get_buffer(avctx, ac->frame, 0)) < 0)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment