Commit ea79dfba authored by Peter Hall's avatar Peter Hall Committed by Michael Niedermayer

avcodec/libvorbisenc: Give CODEC_CAP_SMALL_LAST_FRAME to libvorbis encoder.

The libvorbis encoder already supports a small last frame, but the layer
above doesn't know that because we didn't register the small last frame
capability.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d1d39042
...@@ -372,7 +372,7 @@ AVCodec ff_libvorbis_encoder = { ...@@ -372,7 +372,7 @@ AVCodec ff_libvorbis_encoder = {
.init = libvorbis_encode_init, .init = libvorbis_encode_init,
.encode2 = libvorbis_encode_frame, .encode2 = libvorbis_encode_frame,
.close = libvorbis_encode_close, .close = libvorbis_encode_close,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_SMALL_LAST_FRAME,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE }, AV_SAMPLE_FMT_NONE },
.priv_class = &vorbis_class, .priv_class = &vorbis_class,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment