From a280ca66fb83a27d5331a54fab060f06b2b5609a Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 6 Jun 2024 17:28:41 +0000 Subject: [PATCH] Bug 1749046 - Expose more functions to set ffmpeg options. r=chunmin Differential Revision: https://phabricator.services.mozilla.com/D199539 UltraBlame original commit: 92a04a3d916292f6bdd6aafce28690336dae8595 --- .../platforms/ffmpeg/FFmpegLibWrapper.cpp | 10 +++++ dom/media/platforms/ffmpeg/FFmpegLibWrapper.h | 38 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp index d897080fb5465..f14dc2ca346ce 100644 --- a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp +++ b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.cpp @@ -1377,6 +1377,16 @@ AV_FUNC av_opt_set AV_FUNC_AVUTIL_ALL ) +AV_FUNC +( +av_opt_set_double +AV_FUNC_AVUTIL_ALL +) +AV_FUNC +( +av_opt_set_int +AV_FUNC_AVUTIL_ALL +) # ifdef MOZ_WIDGET_GTK diff --git a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h index 112663217e58c..7aba5efde3b2a 100644 --- a/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h +++ b/dom/media/platforms/ffmpeg/FFmpegLibWrapper.h @@ -1149,6 +1149,44 @@ int search_flags ) ; +int +( +* +av_opt_set_double +) +( +void +* +obj +const +char +* +name +double +val +int +search_flags +) +; +int +( +* +av_opt_set_int +) +( +void +* +obj +const +char +* +name +int64_t +val +int +search_flags +) +; / / libavutil