From ec7a212f9f3659181040d40f95a0358f8c8b48e9 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 21 Aug 2012 11:29:37 -0400 Subject: alacenc: fix max_frame_size calculation for the final frame --- libavcodec/alacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/alacenc.c') 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 -- cgit v1.2.3