[SCM] libav/experimental: Change max_framesize for small final frame.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:13:14 UTC 2013
The following commit has been merged in the experimental branch:
commit 2249a7f3127969b6088e99f9ee224c37b1788bdc
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date: Sat Jul 31 20:52:33 2010 +0000
Change max_framesize for small final frame.
Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index dc620b1..9cd65e9 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -1272,6 +1272,12 @@ static int flac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
return 0;
}
+ /* change max_framesize for small final frame */
+ if (avctx->frame_size < s->frame.blocksize) {
+ s->max_framesize = ff_flac_get_max_frame_size(avctx->frame_size,
+ s->channels, 16);
+ }
+
init_frame(s);
copy_samples(s, samples);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list