]> git.sesse.net Git - ffmpeg/commit
avfilter/formats: do not allow unknown layouts in ff_parse_channel_layout if nret...
authorMarton Balint <cus@passwd.hu>
Mon, 26 Dec 2016 01:03:37 +0000 (02:03 +0100)
committerMarton Balint <cus@passwd.hu>
Tue, 24 Jan 2017 22:51:36 +0000 (23:51 +0100)
commit977fd8841921f0109bee220e1f99dd662c166ae1
treea16f626ad67336bb9437f4d581f8658b894382f9
parentc4618f842a2de85097627763f02931afc3fde6d9
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>
libavfilter/formats.c
libavfilter/tests/formats.c
tests/ref/fate/filter-formats