Skip to content
Snippets Groups Projects
Commit 7f16ec61 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Do not warn about wrong channel layout if no channel layout is defined.

parent 55d44578
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ int swr_init(SwrContext *s){ ...@@ -166,7 +166,7 @@ int swr_init(SwrContext *s){
return -1; return -1;
} }
if(s-> in.ch_count && s->in.ch_count != av_get_channel_layout_nb_channels(s-> in_ch_layout)){ if(s-> in.ch_count && s-> in_ch_layout && s->in.ch_count != av_get_channel_layout_nb_channels(s-> in_ch_layout)){
av_log(s, AV_LOG_WARNING, "Input channel layout has a different number of channels than there actually is, ignoring layout\n"); av_log(s, AV_LOG_WARNING, "Input channel layout has a different number of channels than there actually is, ignoring layout\n");
s-> in_ch_layout= 0; s-> in_ch_layout= 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment