aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-12 12:42:27 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 12:50:07 +0100
commita303dce28c9b3e7d532334907dd6cdca8fd6042c (patch)
treed5474b1da1d9d8cdb136e3325e560890714251c8
parentf9fd6f983b979b2da0f9bba3d6b150a302deb1fe (diff)
downloadffmpeg-a303dce28c9b3e7d532334907dd6cdca8fd6042c.tar.gz
utils: Dont sent fake channel layouts, 0 layout is better when its not known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 5b53bee3a1..bc1fc0c998 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -646,8 +646,6 @@ int ff_init_buffer_info(AVCodecContext *avctx, AVFrame *frame)
}
frame->channel_layout = av_get_default_channel_layout(avctx->channels);
- if (!frame->channel_layout)
- frame->channel_layout = (1ULL << avctx->channels) - 1;
}
}
av_frame_set_channels(frame, avctx->channels);