[FFmpeg-cvslog] lavfi/drawutils: remove redundant BE format checks

rcombs git at videolan.org
Wed Jan 5 03:41:25 EET 2022


ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Thu Dec 23 04:13:37 2021 -0600| [186e931f74bbc368e576965365006de8b3433cbf] | committer: rcombs

lavfi/drawutils: remove redundant BE format checks

We already explicitly don't support big-endian in general

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=186e931f74bbc368e576965365006de8b3433cbf
---

 libavfilter/drawutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 79570e71da..6b46f5803d 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -93,7 +93,7 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
         return AVERROR(ENOSYS);
     if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA))
         return AVERROR(ENOSYS);
-    if (format == AV_PIX_FMT_P010LE || format == AV_PIX_FMT_P010BE || format == AV_PIX_FMT_P016LE || format == AV_PIX_FMT_P016BE)
+    if (format == AV_PIX_FMT_P010LE || format == AV_PIX_FMT_P016LE)
         return AVERROR(ENOSYS);
     if (format == AV_PIX_FMT_YUVJ420P || format == AV_PIX_FMT_YUVJ422P || format == AV_PIX_FMT_YUVJ444P ||
         format == AV_PIX_FMT_YUVJ411P || format == AV_PIX_FMT_YUVJ440P)



More information about the ffmpeg-cvslog mailing list