[FFmpeg-devel] [PATCH] Merge buffersrc and abuffersrc

Nicolas George nicolas.george at normalesup.org
Sat Apr 28 16:31:42 CEST 2012

[PATCH 01/13] lavc: add a channel_layout field to AVFrame.
[PATCH 02/13] lavc: add a sample_rate field to AVFrame.

  Useful to convert an AVFrame into a AVFilterBufferRef.

  It may cause incompatibilities with libav if they add other fields.
  Possible workarounds if we fear it:
  - insert "char reserved[64]" that we will eat up if they add fields;
  - abuse existing fields (sample_aspect_ratio, width, height).

[PATCH 03/13] src_buffer: add forgotten avfilter_unref_buffer.


[PATCH 04/13] src_buffer: introduce av_buffersrc_add_ref().

  No need to have twice "buffer" in the name, it only makes it harder to
  keep the 80 colums limit.

  TODO: adjust sink_buffer to be consistent.

[PATCH 05/13] src_buffer: move format change check in a separate function.
[PATCH 06/13] src_buffer: move buffer copy in a separate function.
[PATCH 07/13] src_buffer: move audio format change check in a separate function.

  Mostly unchanged since last night.

[PATCH 08/13] src_buffer: merge av_asrc_buffer_add_audio_buffer_ref.
[PATCH 09/13] lavfi: implement avfilter_get_audio_buffer_ref_from_frame.
[PATCH 10/13] lavfi/avcodec: implement audio copy_frame_prop.
[PATCH 11/13] src_buffer: implement audio buffer copy.
[PATCH 12/13] src_buffer: implement av_buffersrc_add_frame.
[PATCH 13/13] examples/filtering_audio: use av_buffersrc_add_frame.

make fate passes, and examples/filtering_audio works.

TODO: deprecate some functions and public headers; fix a leak (already
present) when normalization is required; try to factor parts of the
renormalization code.


  Nicolas George

More information about the ffmpeg-devel mailing list