[FFmpeg-cvslog] avdevice/lavfi: Don't require AV_PIX_FMT_NONE == -1
Andreas Rheinhardt
git at videolan.org
Fri Dec 3 18:23:24 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Dec 2 20:57:23 2021 +0100| [61bbd0cf3c2ae1f8502243a5695d68cbd3b20758] | committer: Andreas Rheinhardt
avdevice/lavfi: Don't require AV_PIX_FMT_NONE == -1
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61bbd0cf3c2ae1f8502243a5695d68cbd3b20758
---
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;
}
More information about the ffmpeg-cvslog
mailing list