projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4ef00
)
alacenc: fix max_frame_size calculation for the final frame
author
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 21 Aug 2012 15:29:37 +0000
(11:29 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 22 Aug 2012 20:41:23 +0000
(16:41 -0400)
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
70f4bba
..
5b00a7a
100644
(file)
--- 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