Revise to use AV_PROFILE_H264_HIGH closes #1868

This commit is contained in:
Mr-Dave
2025-05-15 16:08:12 -06:00
parent d64b28e171
commit 462b701c5e
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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