OSDN Git Service

avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 18 Dec 2011 18:20:15 +0000 (13:20 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 16 Jan 2012 02:24:17 +0000 (21:24 -0500)
commitb2c75b6e6320b1a399d76913f9d98c56f386f98b
tree72a0e973e1069acf8e9f84756742a116b430c4d9
parent5ee5fa021f32e0506bed6ebd183c807d5162bc72
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/avcodec.h
libavcodec/internal.h
libavcodec/pcm.c
libavcodec/utils.c
libavcodec/version.h