mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 09:35:22 +00:00
set frame_size in libfaad decoder
Originally committed as revision 14024 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
74fd9022b5
commit
f056c8e9dd
@ -196,7 +196,8 @@ static int faac_decode_frame(AVCodecContext *avctx,
|
||||
s->faacDecGetErrorMessage(frame_info.error));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!avctx->frame_size)
|
||||
avctx->frame_size = frame_info.samples/avctx->channels;
|
||||
frame_info.samples *= s->sample_size;
|
||||
memcpy(data, out, frame_info.samples); // CHECKME - can we cheat this one
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user