[FFmpeg-devel] [PATCH] ac3dec: allow selecting float output at runtime.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Apr 25 16:58:47 CEST 2011


On Mon, Apr 25, 2011 at 02:51:37PM +0200, Reimar Döffinger wrote:
> On Mon, Apr 25, 2011 at 02:33:35PM +0200, Michael Niedermayer wrote:
> > On Mon, Apr 25, 2011 at 12:11:47PM +0200, Reimar Döffinger wrote:
> > > ---
> > >  libavcodec/ac3dec.c  |   45 ++++++++++++++++++---------------------------
> > >  libavcodec/avcodec.h |    8 ++++++++
> > >  2 files changed, 26 insertions(+), 27 deletions(-)
> > [...]
> > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> > > index cd28cf3..903d17a 100644
> > > --- a/libavcodec/avcodec.h
> > > +++ b/libavcodec/avcodec.h
> > > @@ -2878,6 +2878,14 @@ typedef struct AVCodecContext {
> > >      int64_t pts_correction_last_pts;       /// PTS of the last frame
> > >      int64_t pts_correction_last_dts;       /// DTS of the last frame
> > >  
> > > +    /**
> > > +     * desired sample format
> > > +     * - encoding: Not used.
> > > +     * - decoding: Set by user.
> > > +     * Decoder will decode to this format if it can.
> > > +     */
> > > +    enum AVSampleFormat request_sample_fmt;
> > > +
> > >  } AVCodecContext;
> > 
> > missing entry in AVOption array
> 
> AVOption doesn't have support for AVSampleFormat...

Oh well, added as int, and all pushed.


More information about the ffmpeg-devel mailing list