aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-02 20:57:23 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 17:01:24 +0100
commit61bbd0cf3c2ae1f8502243a5695d68cbd3b20758 (patch)
tree9458aca0309243b1091b7c1ed7111a607d2c1bd5
parentb7e3ae19b8d3dc1b14c600220a47171e5e3ef746 (diff)
downloadffmpeg-61bbd0cf3c2ae1f8502243a5695d68cbd3b20758.tar.gz
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>
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
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;
}