comparison flacenc.c @ 12330:18c7965807bf libavcodec

Change max_framesize for small final frame.
author jbr
date Sat, 31 Jul 2010 20:52:33 +0000
parents 6644e439130d
children 784ddf9d158a
comparison
equal deleted inserted replaced
12329:6644e439130d 12330:18c7965807bf
1270 av_md5_final(s->md5ctx, s->md5sum); 1270 av_md5_final(s->md5ctx, s->md5sum);
1271 write_streaminfo(s, avctx->extradata); 1271 write_streaminfo(s, avctx->extradata);
1272 return 0; 1272 return 0;
1273 } 1273 }
1274 1274
1275 /* change max_framesize for small final frame */
1276 if (avctx->frame_size < s->frame.blocksize) {
1277 s->max_framesize = ff_flac_get_max_frame_size(avctx->frame_size,
1278 s->channels, 16);
1279 }
1280
1275 init_frame(s); 1281 init_frame(s);
1276 1282
1277 copy_samples(s, samples); 1283 copy_samples(s, samples);
1278 1284
1279 channel_decorrelation(s); 1285 channel_decorrelation(s);