Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 28, 2025
1 parent 345e730 commit 847ddfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-video.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ test_that("convert images into video formats", {
test_that("audio sampling works", {
for(ext in c("mkv", "mp4", "mov", "flv")){
filename <- paste0("test.", ext)
if(grepl("(Fedora|Red Hat)", osVersion)){
# libavfilter-free-devel only supports certain bitrates?
if(ext == 'mkv' && grepl("(Fedora|Red Hat)", osVersion)){
# libavfilter-free-devel only supports certain audio bitrates
wonderland <- av_audio_convert(wonderland, tempfile(fileext = '.mka'), sample_rate = 48000, verbose = FALSE)
}
input_rate <- av_media_info(wonderland)$audio$sample_rate
Expand Down

0 comments on commit 847ddfc

Please sign in to comment.