summaryrefslogtreecommitdiff
path: root/libavcodec/alacenc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-08-21 11:29:37 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-08-22 16:41:23 -0400
commitec7a212f9f3659181040d40f95a0358f8c8b48e9 (patch)
tree46dde9810f1378bb401bf942c60c9c4f01a619a6 /libavcodec/alacenc.c
parent5d4ef004bfe85a006501d21373cce86c9bf32401 (diff)
alacenc: fix max_frame_size calculation for the final frame
Diffstat (limited to 'libavcodec/alacenc.c')
-rw-r--r--libavcodec/alacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 70f4bbad75..5b00a7a09d 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