[FFmpeg-devel] [PATCH 35/35] avformat/sccdec: Avoid variable that is always zero

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Jun 15 03:02:04 EEST 2020


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavformat/sccdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 72f47f70de..c08c58ef97 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -66,7 +66,7 @@ static int scc_read_header(AVFormatContext *s)
     char line[4096], line2[4096];
     int64_t current_pos, next_pos;
     int64_t ts_start, ts_end;
-    int count = 0, ret = 0;
+    int count = 0;
     ptrdiff_t len2, len;
     uint8_t out[4096];
     FFTextReader tr;
@@ -177,7 +177,7 @@ try_again:
 
     ff_subtitles_queue_finalize(s, &scc->q);
 
-    return ret;
+    return 0;
 fail:
     ff_subtitles_queue_clean(&scc->q);
     return AVERROR(ENOMEM);
-- 
2.20.1



More information about the ffmpeg-devel mailing list