ffmpeg: add -guess_layout_max option.

This commit is contained in:
Nicolas George
2012-12-31 15:20:25 +01:00
parent 9648e1495b
commit fccd8c21c4
4 changed files with 15 additions and 0 deletions

View File

@ -1443,6 +1443,8 @@ int guess_input_channel_layout(InputStream *ist)
if (!dec->channel_layout) {
char layout_name[256];
if (dec->channels > ist->guess_layout_max)
return 0;
dec->channel_layout = av_get_default_channel_layout(dec->channels);
if (!dec->channel_layout)
return 0;