aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-04-17 03:47:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-04-23 20:09:38 +0200
commite35a59ea63a699b599e729f5fa8058d83dc73ada (patch)
tree32b5b68b09f2564d29260803f38f6999f99ba899
parent476a7243578f81b35a16ea288e55d423610ee770 (diff)
downloadffmpeg-e35a59ea63a699b599e729f5fa8058d83dc73ada.tar.gz
avformat/webvttdec: Remove write-only variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/webvttdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 52579c5ed2..6c4d5f6736 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -60,7 +60,7 @@ static int64_t read_ts(const char *s)
static int webvtt_read_header(AVFormatContext *s)
{
WebVTTContext *webvtt = s->priv_data;
- AVBPrint header, cue;
+ AVBPrint cue;
int res = 0;
AVStream *st = avformat_new_stream(s, NULL);
@@ -71,7 +71,6 @@ static int webvtt_read_header(AVFormatContext *s)
st->codecpar->codec_id = AV_CODEC_ID_WEBVTT;
st->disposition |= webvtt->kind;
- av_bprint_init(&header, 0, AV_BPRINT_SIZE_UNLIMITED);
av_bprint_init(&cue, 0, AV_BPRINT_SIZE_UNLIMITED);
for (;;) {
@@ -166,7 +165,6 @@ static int webvtt_read_header(AVFormatContext *s)
end:
av_bprint_finalize(&cue, NULL);
- av_bprint_finalize(&header, NULL);
return res;
}