mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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:
parent
c38693b4b0
commit
0058f6013f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user