mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
utils: Dont sent fake channel layouts, 0 layout is better when its not known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f9fd6f983b
commit
a303dce28c
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue