[libav-devel] [PATCH 00/10] avcodec_decode_audio4, v2

Justin Ruggles justin.ruggles at gmail.com
Tue Nov 22 01:52:29 CET 2011

I tried to address most suggestions given in the last patch set.

As for audio decoders reusing buffers, I don't think it's worth
the hassle of providing for that option. Current decoders don't
need it, and any future decoder which might need to do reordering
or might want to reuse a buffer for delayed output could still
implement it internally. If we come across such a codec one day
we can always modify the API if we find it will have substantial
benefit. Until then it would just be unneeded complication based
on conjecture.

Justin Ruggles (10):
  avcodec: change AVFrame.data[4]/base[4] to [8] at next major bump.
  libavutil: add planar sample formats and av_sample_fmt_is_planar()
  libavutil: add utility functions to simplify allocation of audio
  Add avcodec_decode_audio4().
  avconv: use avcodec_decode_audio4() instead of
  avformat: use avcodec_decode_audio4() in avformat_find_stream_info()
  avplay: use a separate buffer for playing silence
  avplay: use avcodec_decode_audio4()
  api-example: update to use avcodec_decode_audio4()
  pcmdec: implement new audio decoding API

 avconv.c                 |   53 +++++------
 avplay.c                 |   47 ++++++----
 doc/APIchanges           |   18 ++++
 libavcodec/api-example.c |   18 ++--
 libavcodec/avcodec.h     |  131 +++++++++++++++++++++++---
 libavcodec/internal.h    |   17 ++++
 libavcodec/pcm.c         |   47 +++++----
 libavcodec/utils.c       |  240 ++++++++++++++++++++++++++++++++++++++++++----
 libavcodec/version.h     |    8 ++-
 libavformat/utils.c      |   31 +++---
 libavutil/avutil.h       |    2 +-
 libavutil/samplefmt.c    |   88 ++++++++++++++++-
 libavutil/samplefmt.h    |   68 +++++++++++++
 13 files changed, 636 insertions(+), 132 deletions(-)

More information about the libav-devel mailing list