mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue