aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sccdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-14 21:27:54 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-22 13:17:02 +0200
commit05475ad26b3068d0048d5bc11f15c51794dce944 (patch)
treed1f94f76a8f7e619e2076c7a96d60c29327ecd13 /libavformat/sccdec.c
parenta7b82fe52b9041c1a0ba52daed10b3db00b47baa (diff)
downloadffmpeg-05475ad26b3068d0048d5bc11f15c51794dce944.tar.gz
avformat/sccdec: Avoid variable that is always zero
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/sccdec.c')
-rw-r--r--libavformat/sccdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 645e52857b..751dee7c6c 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -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);