From b2c75b6e6320b1a399d76913f9d98c56f386f98b Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 18 Dec 2011 13:20:15 -0500 Subject: avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio() This allows audio encoders to optionally take an AVFrame as input and write encoded output to an AVPacket. This also adds AVCodec.encode2() which will also be usable by video and subtitle encoders once support is implemented in the public functions. --- libavcodec/pcm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/pcm.c') diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 32231125d2..190f027adc 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -474,6 +474,7 @@ AVCodec ff_ ## name_ ## _encoder = { \ .init = pcm_encode_init, \ .encode = pcm_encode_frame, \ .close = pcm_encode_close, \ + .capabilities = CODEC_CAP_VARIABLE_FRAME_SIZE, \ .sample_fmts = (const enum AVSampleFormat[]){sample_fmt_,AV_SAMPLE_FMT_NONE}, \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ } -- cgit v1.2.3