mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
b7e3ae19b8
commit
61bbd0cf3c
@ -76,7 +76,7 @@ static int *create_all_formats(int n)
|
||||
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL))
|
||||
fmts[j++] = i;
|
||||
}
|
||||
fmts[j] = -1;
|
||||
fmts[j] = AV_PIX_FMT_NONE;
|
||||
return fmts;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user