[FFmpeg-cvslog] avcodec/libvorbisenc: Give CODEC_CAP_SMALL_LAST_FRAME to libvorbis encoder.
Peter Hall
git at videolan.org
Tue Nov 18 20:30:00 CET 2014
ffmpeg | branch: master | Peter Hall <tastymorsel at mac.com> | Tue Nov 18 15:17:42 2014 +0000| [ea79dfbad321fe2d408e0d4598a2758eea92d046] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea79dfbad321fe2d408e0d4598a2758eea92d046
---
libavcodec/libvorbisenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c
index 4d16b75..231d1be 100644
--- a/libavcodec/libvorbisenc.c
+++ b/libavcodec/libvorbisenc.c
@@ -372,7 +372,7 @@ AVCodec ff_libvorbis_encoder = {
.init = libvorbis_encode_init,
.encode2 = libvorbis_encode_frame,
.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,
AV_SAMPLE_FMT_NONE },
.priv_class = &vorbis_class,
More information about the ffmpeg-cvslog
mailing list