diff mbox series

[FFmpeg-devel] avformat/fitsdec: remove always true condition

Message ID 20211225141036.46998-1-liuqi05@kuaishou.com
State New
Headers show
Series [FFmpeg-devel] avformat/fitsdec: remove always true condition | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Steven Liu Dec. 25, 2021, 2:10 p.m. UTC
From: Steven Liu <lq@chinaffmpeg.org>

Because the AVBPrint->len is unsigned, so it should alway true,
the AVBPrint->len < INT64_MAX is unneccessary condition.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/fitsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c
index 54412c60ff..6477c5ab1f 100644
--- a/libavformat/fitsdec.c
+++ b/libavformat/fitsdec.c
@@ -174,7 +174,7 @@  static int fits_read_packet(AVFormatContext *s, AVPacket *pkt)
         goto fail;
     }
 
-    av_assert0(avbuf.len <= INT64_MAX && size <= INT64_MAX);
+    av_assert0(size <= INT64_MAX);
     if (avbuf.len + size > INT_MAX - 80)  {
         ret = AVERROR_INVALIDDATA;
         goto fail;