[FFmpeg-cvslog] avutil/tests/channel_layout: test generating a custom layout using ambisonic channels and a non diegetic channel with a custom name

James Almer git at videolan.org
Fri Mar 25 17:27:17 EET 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Mar 25 10:00:46 2022 -0300| [f9ed91abc9c70842ed385785b87c67bf54e67a6f] | committer: James Almer

avutil/tests/channel_layout: test generating a custom layout using ambisonic channels and a non diegetic channel with a custom name

Should increase test coverage a bit

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9ed91abc9c70842ed385785b87c67bf54e67a6f
---

 libavutil/tests/channel_layout.c | 2 ++
 tests/ref/fate/channel_layout    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/libavutil/tests/channel_layout.c b/libavutil/tests/channel_layout.c
index 4830c4c730..89abd8b171 100644
--- a/libavutil/tests/channel_layout.c
+++ b/libavutil/tests/channel_layout.c
@@ -206,6 +206,8 @@ int main(void)
     printf("With \"2 channels (FR+FL)\": %34s\n", bp.str);
     CHANNEL_LAYOUT_FROM_STRING("ambisonic 1+FR+FL");
     printf("With \"ambisonic 1+FR+FL\": %35s\n", bp.str);
+    CHANNEL_LAYOUT_FROM_STRING("ambisonic 2+FC at Foo");
+    printf("With \"ambisonic 2+FC at Foo\": %34s\n", bp.str);
     CHANNEL_LAYOUT_FROM_STRING("FL at Foo+FR@Bar");
     printf("With \"FL at Foo+FR@Bar\": %39s\n", bp.str);
     CHANNEL_LAYOUT_FROM_STRING("FR+FL at Foo+USR63@Foo");
diff --git a/tests/ref/fate/channel_layout b/tests/ref/fate/channel_layout
index 5a2f3481bb..806509246f 100644
--- a/tests/ref/fate/channel_layout
+++ b/tests/ref/fate/channel_layout
@@ -78,6 +78,7 @@ Testing av_channel_layout_from_string
 With "FL+FR+FC+BL+BR+LFE":    6 channels (FL+FR+FC+BL+BR+LFE)
 With "2 channels (FR+FL)":                 2 channels (FR+FL)
 With "ambisonic 1+FR+FL":      ambisonic 1+2 channels (FR+FL)
+With "ambisonic 2+FC at Foo":    ambisonic 2+1 channels (FC at Foo)
 With "FL at Foo+FR@Bar":              2 channels (FL at Foo+FR@Bar)
 With "FR+FL at Foo+USR63@Foo":  3 channels (FR+FL at Foo+USR63@Foo)
 



More information about the ffmpeg-cvslog mailing list