[FFmpeg-devel] [PATCH 7/8] avdevice/lavfi: Don't require AV_PIX_FMT_NONE == -1
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Dec 2 22:24:37 EET 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavdevice/lavfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index d63a6f66b3..710ad7c530 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -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;
}
--
2.32.0
More information about the ffmpeg-devel
mailing list