Browse Source

src_movie: set the channel layout to default if the codec did not set it.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Nicolas George Michael Niedermayer 14 years ago
parent
commit
68b531fe6a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/src_movie.c

+ 2
- 1
libavfilter/src_movie.c View File

@@ -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 };

avfilter_set_common_sample_formats (ctx, avfilter_make_format_list(sample_fmts));
avfilter_set_common_packing_formats(ctx, avfilter_make_format_list(packing_fmts));


Loading…
Cancel
Save