From 462b701c5e11039c9883d49eb44a71285ebfe05f Mon Sep 17 00:00:00 2001 From: Mr-Dave Date: Thu, 15 May 2025 16:08:12 -0600 Subject: [PATCH] Revise to use AV_PROFILE_H264_HIGH closes #1868 --- src/movie.cpp | 2 +- src/util.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/movie.cpp b/src/movie.cpp index dddba157..62f7bdb1 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -302,7 +302,7 @@ int cls_movie::set_quality() // magic number quality = 4000; } - ctx_codec->profile = FF_PROFILE_H264_HIGH; + ctx_codec->profile = MY_PROFILE_H264_HIGH; ctx_codec->bit_rate = quality; av_dict_set(&opts, "preset", "ultrafast", 0); av_dict_set(&opts, "tune", "zerolatency", 0); diff --git a/src/util.hpp b/src/util.hpp index 8e710193..a5b69855 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -30,8 +30,10 @@ #if (MYFFVER <= 60016) typedef uint8_t myuint; /* Version independent uint */ + #define MY_PROFILE_H264_HIGH FF_PROFILE_H264_HIGH #else typedef const uint8_t myuint; /* Version independent uint */ + #define MY_PROFILE_H264_HIGH AV_PROFILE_H264_HIGH #endif