mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 09:23:37 +08: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:
@@ -3020,7 +3020,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
|
||||
if (!do_bitexact && (profile = avcodec_profile_name(par->codec_id, par->profile)))
|
||||
print_str("profile", profile);
|
||||
else {
|
||||
if (par->profile != FF_PROFILE_UNKNOWN) {
|
||||
if (par->profile != AV_PROFILE_UNKNOWN) {
|
||||
char profile_num[12];
|
||||
snprintf(profile_num, sizeof(profile_num), "%d", par->profile);
|
||||
print_str("profile", profile_num);
|
||||
|
||||
Reference in New Issue
Block a user