]> git.sesse.net Git - ffmpeg/commitdiff
avformat/sccdec: Avoid variable that is always zero
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 14 Jun 2020 19:27:54 +0000 (21:27 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Jun 2020 11:17:02 +0000 (13:17 +0200)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/sccdec.c

index 645e52857b96d842074d565739e0eae1fd006803..751dee7c6c1748e64ce7e097cf047ff44732938a 100644 (file)
@@ -65,7 +65,6 @@ static int scc_read_header(AVFormatContext *s)
     AVStream *st = avformat_new_stream(s, NULL);
     char line2[4096], line[4096];
     int64_t pos, ts, next_ts = AV_NOPTS_VALUE;
-    int ret = 0;
     ptrdiff_t len;
     uint8_t out[4096];
     FFTextReader tr;
@@ -175,7 +174,7 @@ static int scc_read_header(AVFormatContext *s)
 
     ff_subtitles_queue_finalize(s, &scc->q);
 
-    return ret;
+    return 0;
 fail:
     ff_subtitles_queue_clean(&scc->q);
     return AVERROR(ENOMEM);