avcodec/av1dec: Don't rely on AV_PIX_FMT_NONE == -1

Since fb548fba04,
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>
This commit is contained in:
Andreas Rheinhardt 2023-09-10 13:36:19 +02:00
parent c38693b4b0
commit 0058f6013f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {