|
52 | 52 | #define NV_ENC_HEVC_PROFILE_MAIN_10 1 |
53 | 53 | #define NV_ENC_HEVC_PROFILE_REXT 2 |
54 | 54 |
|
55 | | -#define NV_ENC_PROFILE_UNKNOWN FF_PROFILE_UNKNOWN |
56 | | - |
57 | 55 | #define NV_ENC_LEVEL_AUTOSELECT 0 |
58 | 56 |
|
59 | 57 | #define NV_ENC_LEVEL_H264_1 10 |
@@ -217,7 +215,7 @@ static const codec_profile_class_t codec_profile_nvenc_class = { |
217 | 215 | .get_opts = codec_profile_class_profile_get_opts, |
218 | 216 | .off = offsetof(tvh_codec_profile_nvenc_t, nvenc_profile), |
219 | 217 | .list = codec_profile_nvenc_class_profile_list, |
220 | | - .def.i = NV_ENC_PROFILE_UNKNOWN, |
| 218 | + .def.i = FF_AV_PROFILE_UNKNOWN, |
221 | 219 | }, |
222 | 220 | { |
223 | 221 | .type = PT_INT, |
@@ -279,7 +277,7 @@ static const AVProfile nvenc_h264_profiles[] = { |
279 | 277 | { NV_ENC_H264_PROFILE_MAIN, "Main" }, |
280 | 278 | { NV_ENC_H264_PROFILE_HIGH, "High" }, |
281 | 279 | { NV_ENC_H264_PROFILE_HIGH_444P, "High 444P" }, |
282 | | - { NV_ENC_PROFILE_UNKNOWN }, |
| 280 | + { FF_AV_PROFILE_UNKNOWN }, |
283 | 281 | }; |
284 | 282 |
|
285 | 283 | static int |
@@ -323,7 +321,7 @@ tvh_codec_profile_nvenc_h264_open(tvh_codec_profile_nvenc_t *self, |
323 | 321 | AV_DICT_SET(opts, "level", s, 0); |
324 | 322 | } |
325 | 323 |
|
326 | | - if (self->nvenc_profile != NV_ENC_PROFILE_UNKNOWN && |
| 324 | + if (self->nvenc_profile != FF_AV_PROFILE_UNKNOWN && |
327 | 325 | (s = val2str(self->nvenc_profile, profiletab)) != NULL) { |
328 | 326 | AV_DICT_SET(opts, "profile", s, 0); |
329 | 327 | } |
@@ -406,7 +404,7 @@ static const AVProfile nvenc_hevc_profiles[] = { |
406 | 404 | { NV_ENC_HEVC_PROFILE_MAIN, "Main" }, |
407 | 405 | { NV_ENC_HEVC_PROFILE_MAIN_10, "Main 10" }, |
408 | 406 | { NV_ENC_HEVC_PROFILE_REXT, "Rext" }, |
409 | | - { NV_ENC_PROFILE_UNKNOWN }, |
| 407 | + { FF_AV_PROFILE_UNKNOWN }, |
410 | 408 | }; |
411 | 409 |
|
412 | 410 | static int |
@@ -443,7 +441,7 @@ tvh_codec_profile_nvenc_hevc_open(tvh_codec_profile_nvenc_t *self, |
443 | 441 | AV_DICT_SET(opts, "level", s, 0); |
444 | 442 | } |
445 | 443 |
|
446 | | - if (self->nvenc_profile != NV_ENC_PROFILE_UNKNOWN && |
| 444 | + if (self->nvenc_profile != FF_AV_PROFILE_UNKNOWN && |
447 | 445 | (s = val2str(self->nvenc_profile, profiletab)) != NULL) { |
448 | 446 | AV_DICT_SET(opts, "profile", s, 0); |
449 | 447 | } |
|
0 commit comments