Skip to content

Commit

Permalink
[media] Allow media_unittests to build without ffmpeg (#4467)
Browse files Browse the repository at this point in the history
b/378909148
  • Loading branch information
osagie98 authored Nov 21, 2024
1 parent bd17ba2 commit 601f8fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions media/filters/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ source_set("unit_tests") {
]

if (is_android) {
sources += [ "android/video_frame_extractor_unittest.cc" ]
if (media_use_ffmpeg) {
sources += [ "android/video_frame_extractor_unittest.cc" ]
}
sources -= [
"decrypting_audio_decoder_unittest.cc",
"decrypting_video_decoder_unittest.cc",
Expand Down Expand Up @@ -376,11 +378,11 @@ source_set("unit_tests") {
}
}

if (media_use_libvpx) {
if (media_use_libvpx && media_use_ffmpeg) {
sources += [ "vpx_video_decoder_unittest.cc" ]
}

if (enable_dav1d_decoder) {
if (enable_dav1d_decoder && media_use_ffmpeg) {
sources += [ "dav1d_video_decoder_unittest.cc" ]
}

Expand Down

0 comments on commit 601f8fc

Please sign in to comment.