diff mbox series

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

Message ID 20200615000204.10568-9-andreas.rheinhardt@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,01/26] avformat/matroskadec: Move AVBufferRef instead of copying, fix memleak
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt June 15, 2020, 12:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/sccdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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