[FFmpeg-cvslog] r24631 - trunk/libavcodec/flacenc.c
jbr
subversion
Sat Jul 31 22:52:33 CEST 2010
Author: jbr
Date: Sat Jul 31 22:52:33 2010
New Revision: 24631
Log:
Change max_framesize for small final frame.
Modified:
trunk/libavcodec/flacenc.c
Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c Sat Jul 31 22:32:12 2010 (r24630)
+++ trunk/libavcodec/flacenc.c Sat Jul 31 22:52:33 2010 (r24631)
@@ -1272,6 +1272,12 @@ static int flac_encode_frame(AVCodecCont
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);
More information about the ffmpeg-cvslog
mailing list