[FFmpeg-devel] [libav-devel] [PATCH] lavfi: add audio channel packing negotiation fields

Michael Niedermayer michaelni at gmx.at
Fri Aug 5 12:54:17 CEST 2011


On Sat, Jul 16, 2011 at 07:25:09PM +0200, Stefano Sabatini wrote:
> On date Thursday 2011-07-14 15:28:42 +0200, Stefano Sabatini encoded:
> > On date Thursday 2011-07-14 14:30:06 +0300, Mina Nagy Zaki encoded:
> > > On Thu, Jul 14, 2011 at 12:34:54AM +0200, Stefano Sabatini wrote:
> > > [...]
> > > 
> > > Nits fixed, and also added forgotten code in avfilter_insert_filter.
> > > 
> > 
> > > From 7af0ea823c030a5e9f9b9f36d17bbeead2ca13a4 Mon Sep 17 00:00:00 2001
> > > From: Mina Nagy Zaki <mnzaki at gmail.com>
> > > Date: Tue, 28 Jun 2011 08:56:19 +0300
> > > Subject: [PATCH] lavfi: add audio channel packing negotiation fields
> > > 
> > > ---
> > >  libavfilter/avfilter.c      |    3 +++
> > >  libavfilter/avfilter.h      |   16 +++++++++++++++-
> > >  libavfilter/avfiltergraph.c |    6 ++++++
> > >  libavfilter/defaults.c      |    8 ++++++++
> > >  libavfilter/formats.c       |   11 +++++++++++
> > >  5 files changed, 43 insertions(+), 1 deletions(-)
> > 
> > Looks fine to me, I'm going to apply it in a few days if I see no more
> > comments.
> 
> Pushed.

breaks ABI:
@@ -597,9 +608,10 @@ struct AVFilterLink {
     int w;                      ///< agreed upon image width
     int h;                      ///< agreed upon image height
     AVRational sample_aspect_ratio; ///< agreed upon sample aspect ratio
-    /* These two parameters apply only to audio */
+    /* These parameters apply only to audio */
     int64_t channel_layout;     ///< channel layout of current buffer (see libavutil/audioconvert.h)
     int64_t sample_rate;        ///< samples per second
+    int planar;                 ///< agreed upon packing mode of audio buffers. true if planar.

     int format;                 ///< agreed upon media format

@@ -615,6 +627,8 @@ struct AVFilterLink {

     AVFilterFormats *in_chlayouts;
     AVFilterFormats *out_chlayouts;
+    AVFilterFormats *in_packing;
+    AVFilterFormats *out_packing;

     /**
      * The buffer reference currently being sent across the link by the source


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110805/bf536812/attachment.asc>


More information about the ffmpeg-devel mailing list