Commit 2b566489 authored by bcoudurier's avatar bcoudurier

set frame_size in libfaad decoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14024 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6933e874
...@@ -196,7 +196,8 @@ static int faac_decode_frame(AVCodecContext *avctx, ...@@ -196,7 +196,8 @@ static int faac_decode_frame(AVCodecContext *avctx,
s->faacDecGetErrorMessage(frame_info.error)); s->faacDecGetErrorMessage(frame_info.error));
return -1; return -1;
} }
if (!avctx->frame_size)
avctx->frame_size = frame_info.samples/avctx->channels;
frame_info.samples *= s->sample_size; frame_info.samples *= s->sample_size;
memcpy(data, out, frame_info.samples); // CHECKME - can we cheat this one memcpy(data, out, frame_info.samples); // CHECKME - can we cheat this one
......
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