mirror of
https://github.com/Motion-Project/motion.git
synced 2025-12-23 23:18:21 -05:00
Revise to use AV_PROFILE_H264_HIGH closes #1868
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user