1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Change max_framesize for small final frame.

Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2010-07-31 20:52:33 +00:00
parent 7c29a5de25
commit 2249a7f312

View File

@ -1272,6 +1272,12 @@ static int flac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
return 0; 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); init_frame(s);
copy_samples(s, samples); copy_samples(s, samples);