avdevice/lavfi: Don't require AV_PIX_FMT_NONE == -1

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-12-02 20:57:23 +01:00
parent b7e3ae19b8
commit 61bbd0cf3c
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ static int *create_all_formats(int n)
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL))
fmts[j++] = i; fmts[j++] = i;
} }
fmts[j] = -1; fmts[j] = AV_PIX_FMT_NONE;
return fmts; return fmts;
} }