mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/defs: Add AV_PROFILE_* defines, deprecate FF_PROFILE_* defines
These defines are also used in other contexts than just AVCodecContext ones, e.g. in libavformat. Furthermore, given that these defines are public, the AV-prefix is the right one, so deprecate (and not just move) the FF-macros. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0c6e5f321b
commit
8238bc0b5e
93 changed files with 879 additions and 727 deletions
|
|
@ -1414,7 +1414,7 @@ static av_cold int vaapi_encode_profile_entrypoint(AVCodecContext *avctx)
|
|||
|
||||
av_assert0(ctx->codec->profiles);
|
||||
for (i = 0; (ctx->codec->profiles[i].av_profile !=
|
||||
FF_PROFILE_UNKNOWN); i++) {
|
||||
AV_PROFILE_UNKNOWN); i++) {
|
||||
profile = &ctx->codec->profiles[i];
|
||||
if (depth != profile->depth ||
|
||||
desc->nb_components != profile->nb_components)
|
||||
|
|
@ -1424,7 +1424,7 @@ static av_cold int vaapi_encode_profile_entrypoint(AVCodecContext *avctx)
|
|||
desc->log2_chroma_h != profile->log2_chroma_h))
|
||||
continue;
|
||||
if (avctx->profile != profile->av_profile &&
|
||||
avctx->profile != FF_PROFILE_UNKNOWN)
|
||||
avctx->profile != AV_PROFILE_UNKNOWN)
|
||||
continue;
|
||||
|
||||
#if VA_CHECK_VERSION(1, 0, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue