Browse Source

Change max_framesize for small final frame.

Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Justin Ruggles 15 years ago
parent
commit
2249a7f312
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavcodec/flacenc.c

+ 6
- 0
libavcodec/flacenc.c View File

@@ -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);


Loading…
Cancel
Save