Browse Source

Never favour an audio stream with 0 channels in av_find_best_stream().

Fixes ticket #3311.
tags/n2.2-rc1
Carl Eugen Hoyos 12 years ago
parent
commit
cb36e441de
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/utils.c

+ 2
- 0
libavformat/utils.c View File

@@ -3263,6 +3263,8 @@ int av_find_best_stream(AVFormatContext *ic,
continue;
if (st->disposition & (AV_DISPOSITION_HEARING_IMPAIRED|AV_DISPOSITION_VISUAL_IMPAIRED))
continue;
if (type == AVMEDIA_TYPE_AUDIO && !avctx->channels)
continue;
if (decoder_ret) {
decoder = find_decoder(ic, st, st->codec->codec_id);
if (!decoder) {


Loading…
Cancel
Save