[FFmpeg-devel] [PATCH 3/5] avformat/evc: remove duplicate check

James Almer jamrial at gmail.com
Thu Jun 22 22:29:16 EEST 2023


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/evc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/evc.c b/libavformat/evc.c
index 1c72b141bd..9d0fe8d84c 100644
--- a/libavformat/evc.c
+++ b/libavformat/evc.c
@@ -226,9 +226,6 @@ static int evcc_write(AVIOContext *pb, EVCDecoderConfigurationRecord *evcc)
     if (!sps_count || sps_count > EVC_MAX_SPS_COUNT)
         return AVERROR_INVALIDDATA;
 
-    if (!sps_count || sps_count > EVC_MAX_SPS_COUNT)
-        return AVERROR_INVALIDDATA;
-
     /* unsigned int(8) configurationVersion = 1; */
     avio_w8(pb, evcc->configurationVersion);
 
-- 
2.41.0



More information about the ffmpeg-devel mailing list