[FFmpeg-devel] [PATCH 1/5] src_movie: set the channel layout to default if the codec did not set it.

Michael Niedermayer michaelni at gmx.at
Sun Nov 6 01:08:11 CET 2011


On Sun, Nov 06, 2011 at 01:04:17AM +0100, Stefano Sabatini wrote:
> On date Saturday 2011-11-05 21:21:47 +0100, Nicolas George encoded:
> > 
> > Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> > ---
> >  libavfilter/src_movie.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
> > index c37195a..3ee3c60 100644
> > --- a/libavfilter/src_movie.c
> > +++ b/libavfilter/src_movie.c
> > @@ -353,7 +353,8 @@ static int amovie_query_formats(AVFilterContext *ctx)
> >  
> >      enum AVSampleFormat sample_fmts[] = { c->sample_fmt, -1 };
> >      int packing_fmts[] = { AVFILTER_PACKED, -1 };
> > -    int64_t chlayouts[] = { c->channel_layout, -1 };
> > +    int64_t chlayouts[] = { c->channel_layout ? c->channel_layout :
> > +                            av_get_default_channel_layout(c->channels), -1 };
> 
> LGTM.

applied, thanks

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

There will always be a question for which you do not know the correct awnser.
-------------- 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/20111106/fa7b76e4/attachment.asc>


More information about the ffmpeg-devel mailing list