diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-31 18:20:25 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-26 14:15:38 +0400 |
commit | fccd8c21c40cf004cacaa6b4bf12695ecb014c1b (patch) | |
tree | 0a8fedb1410ae00d037df4eb3ab619eadb181c78 /ffmpeg.c | |
parent | 9648e1495bf6074da6c8f867974ede09f83f73ed (diff) |
ffmpeg: add -guess_layout_max option.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |