Skip to content

Commit 462b701

Browse files
committed
Revise to use AV_PROFILE_H264_HIGH closes #1868
1 parent d64b28e commit 462b701

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/movie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ int cls_movie::set_quality()
302302
// magic number
303303
quality = 4000;
304304
}
305-
ctx_codec->profile = FF_PROFILE_H264_HIGH;
305+
ctx_codec->profile = MY_PROFILE_H264_HIGH;
306306
ctx_codec->bit_rate = quality;
307307
av_dict_set(&opts, "preset", "ultrafast", 0);
308308
av_dict_set(&opts, "tune", "zerolatency", 0);

src/util.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030

3131
#if (MYFFVER <= 60016)
3232
typedef uint8_t myuint; /* Version independent uint */
33+
#define MY_PROFILE_H264_HIGH FF_PROFILE_H264_HIGH
3334
#else
3435
typedef const uint8_t myuint; /* Version independent uint */
36+
#define MY_PROFILE_H264_HIGH AV_PROFILE_H264_HIGH
3537
#endif
3638

3739

0 commit comments

Comments
 (0)