diff options
author | Marton Balint <cus@passwd.hu> | 2016-12-26 02:03:37 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-01-24 23:51:36 +0100 |
commit | 977fd8841921f0109bee220e1f99dd662c166ae1 (patch) | |
tree | a16f626ad67336bb9437f4d581f8658b894382f9 /tests | |
parent | c4618f842a2de85097627763f02931afc3fde6d9 (diff) | |
download | ffmpeg-streaming-977fd8841921f0109bee220e1f99dd662c166ae1.zip ffmpeg-streaming-977fd8841921f0109bee220e1f99dd662c166ae1.tar.gz |
avfilter/formats: do not allow unknown layouts in ff_parse_channel_layout if nret is not set
Current code returned the number of channels as channel layout in that case,
and if nret is not set then unknown layouts are typically not supported.
Also use the common parsing code. Use a temporary workaround to parse an
unknown channel layout such as '13c', after a 1 year grace period only '13C'
will work.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ref/fate/filter-formats | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ref/fate/filter-formats b/tests/ref/fate/filter-formats index 4c303d8..ea85eed 100644 --- a/tests/ref/fate/filter-formats +++ b/tests/ref/fate/filter-formats @@ -77,6 +77,9 @@ quad(side) -1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, -1c); 0 = ff_parse_channel_layout(0000000000000000, 60, 60c); -1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, 65c); +0 = ff_parse_channel_layout(0000000000000000, 2, 2C); +0 = ff_parse_channel_layout(0000000000000000, 60, 60C); +-1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, 65C); 0 = ff_parse_channel_layout(000000000000003F, 6, 5.1); 0 = ff_parse_channel_layout(0000000000000003, 2, stereo); 0 = ff_parse_channel_layout(0000000000000001, 1, 1+1+1+1); |