ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>

> 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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to