aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp')
-rw-r--r--multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp b/multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp
index 825de6eb04b3..64e3d4628e0d 100644
--- a/multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp
+++ b/multimedia/libopenshot/files/patch-src_FFmpegWriter.cpp
@@ -1,4 +1,4 @@
---- src/FFmpegWriter.cpp.orig 2024-06-20 01:25:10 UTC
+--- src/FFmpegWriter.cpp.orig 2024-12-21 22:27:30 UTC
+++ src/FFmpegWriter.cpp
@@ -166,7 +166,7 @@ void FFmpegWriter::SetVideoOptions(bool has_video, std
const AVCodec *new_codec;
@@ -35,7 +35,7 @@
}
#endif // FFmpeg 4.0+
} else {
-@@ -1434,21 +1437,25 @@ void FFmpegWriter::open_video(AVFormatContext *oc, AVS
+@@ -1434,22 +1437,26 @@ void FFmpegWriter::open_video(AVFormatContext *oc, AVS
adapter_num = openshot::Settings::Instance()->HW_EN_DEVICE_SET;
std::clog << "Encoding Device Nr: " << adapter_num << "\n";
if (adapter_num < 3 && adapter_num >=0) {
@@ -58,8 +58,18 @@
+#if defined(__unix__)
if( adapter_ptr != NULL && access( adapter_ptr, W_OK ) == 0 ) {
#elif defined(_WIN32) || defined(__APPLE__)
-+ if( adapter_ptr != NULL ) {
-+#else
if( adapter_ptr != NULL ) {
++#else
++ if( adapter_ptr != NULL ) {
#endif
ZmqLogger::Instance()->AppendDebugMethod(
+ "Encode Device present using device",
+@@ -1511,7 +1518,7 @@ void FFmpegWriter::open_video(AVFormatContext *oc, AVS
+ switch (video_codec_ctx->codec_id) {
+ case AV_CODEC_ID_H264:
+ video_codec_ctx->max_b_frames = 0; // At least this GPU doesn't support b-frames
+- video_codec_ctx->profile = FF_PROFILE_H264_BASELINE | FF_PROFILE_H264_CONSTRAINED;
++ video_codec_ctx->profile = AV_PROFILE_H264_BASELINE | AV_PROFILE_H264_CONSTRAINED;
+ av_opt_set(video_codec_ctx->priv_data, "preset", "slow", 0);
+ av_opt_set(video_codec_ctx->priv_data, "tune", "zerolatency", 0);
+ av_opt_set(video_codec_ctx->priv_data, "vprofile", "baseline", AV_OPT_SEARCH_CHILDREN);