From 013f70fabc02bc07b8765d007ba7dadce4a673fa Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Fri, 24 Jan 2025 01:50:16 +0100 Subject: [PATCH] Test some critical encoders --- tests/testthat/test-formats.R | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/testthat/test-formats.R b/tests/testthat/test-formats.R index 7f60b3e..0823cad 100644 --- a/tests/testthat/test-formats.R +++ b/tests/testthat/test-formats.R @@ -20,3 +20,13 @@ test_that("Listing formats", { expect_equal(names(decoders), c("type", "name", "description", "format")) expect_equal(names(filters), c("name", "description")) }) + +test_that("Critical encoders", { + encoders <- av_encoders() + expect_contains(encoders$name, 'libmp3lame') + expect_contains(encoders$name, 'libvorbis') + expect_contains(encoders$name, 'libxvid') + skip_on_os('linux') + # libx264 is not supported on Fedora libavfilter-free-devel + expect_contains(encoders$name, 'libx264') +})