[FFmpeg-cvslog] avformat/evc: remove duplicate check

James Almer git at videolan.org
Fri Jun 23 15:32:33 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jun 22 10:31:11 2023 -0300| [552879d6216413539b5de79f319266b544c4f5ca] | committer: James Almer

avformat/evc: remove duplicate check

Signed-off-by: James Almer <jamrial at gmail.com>

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

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



More information about the ffmpeg-cvslog mailing list