diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-10 13:36:19 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-13 22:04:22 +0200 |
commit | 0058f6013f5286d5e1b7403dfce0d97069cd8f91 (patch) | |
tree | e788ecec0b9e4bb9ecb9f4065d3136ff20e0723d /libavcodec | |
parent | c38693b4b099057553c0323cc2757470cede5614 (diff) | |
download | ffmpeg-0058f6013f5286d5e1b7403dfce0d97069cd8f91.tar.gz |
avcodec/av1dec: Don't rely on AV_PIX_FMT_NONE == -1
Since fb548fba04193a418f118d21b261ba05db4f480b,
this return -1 is in a function returning enum AVPixelFormat
whose caller checks for AV_PIX_FMT_NONE for failure.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/av1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 8f6c4f732e..c523c457ec 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -453,7 +453,7 @@ static enum AVPixelFormat get_sw_pixel_format(void *logctx, else { av_log(logctx, AV_LOG_ERROR, "Unknown AV1 profile %d.\n", seq->seq_profile); - return -1; + return AV_PIX_FMT_NONE; } if (!seq->color_config.mono_chrome) { |