[FFmpeg-cvslog] alacenc: fix max_frame_size calculation for the final frame
Justin Ruggles
git at videolan.org
Thu Aug 23 14:41:49 CEST 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Aug 21 11:29:37 2012 -0400| [ec7a212f9f3659181040d40f95a0358f8c8b48e9] | committer: Justin Ruggles
alacenc: fix max_frame_size calculation for the final frame
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec7a212f9f3659181040d40f95a0358f8c8b48e9
---
libavcodec/alacenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 70f4bba..5b00a7a 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -546,7 +546,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
s->frame_size = frame->nb_samples;
- if (avctx->frame_size < DEFAULT_FRAME_SIZE)
+ if (frame->nb_samples < DEFAULT_FRAME_SIZE)
max_frame_size = get_max_frame_size(s->frame_size, avctx->channels,
DEFAULT_SAMPLE_SIZE);
else
More information about the ffmpeg-cvslog
mailing list