diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-05-17 00:29:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-07 19:58:15 +0200 |
commit | c6bb825e7211f97cacf56c2c52472eecf4d969c6 (patch) | |
tree | 55e921ef1b86026bd091154c45672a4636f3b155 | |
parent | 79aa91d562a53187d0b381da7203110f16cc1bb6 (diff) | |
download | ffmpeg-streaming-c6bb825e7211f97cacf56c2c52472eecf4d969c6.zip ffmpeg-streaming-c6bb825e7211f97cacf56c2c52472eecf4d969c6.tar.gz |
avformat/matroskadec: Remove unused variables
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/matroskadec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index cba2b3d..ed901f1 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -322,7 +322,6 @@ typedef struct MatroskaDemuxContext { /* EBML stuff */ int num_levels; MatroskaLevel levels[EBML_MAX_DEPTH]; - int level_up; uint32_t current_id; uint64_t time_scale; @@ -1611,7 +1610,6 @@ static void matroska_convert_tags(AVFormatContext *s) static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, uint64_t pos) { - uint32_t level_up = matroska->level_up; uint32_t saved_id = matroska->current_id; int64_t before_pos = avio_tell(matroska->ctx->pb); MatroskaLevel level; @@ -1647,7 +1645,6 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, } /* seek back */ avio_seek(matroska->ctx->pb, before_pos, SEEK_SET); - matroska->level_up = level_up; matroska->current_id = saved_id; return ret; @@ -3582,7 +3579,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, MatroskaDemuxContext *matroska = s->priv_data; MatroskaTrack *tracks = NULL; AVStream *st = s->streams[stream_index]; - int i, index, index_min; + int i, index; /* Parse the CUES now since we need the index data to seek. */ if (matroska->cues_parsing_deferred > 0) { @@ -3609,7 +3606,6 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, if (index < 0 || (matroska->cues_parsing_deferred < 0 && index == st->nb_index_entries - 1)) goto err; - index_min = index; tracks = matroska->tracks.elem; for (i = 0; i < matroska->tracks.nb_elem; i++) { tracks[i].audio.pkt_cnt = 0; @@ -3618,7 +3614,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, tracks[i].end_timecode = 0; } - avio_seek(s->pb, st->index_entries[index_min].pos, SEEK_SET); + avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET); matroska->current_id = 0; if (flags & AVSEEK_FLAG_ANY) { st->skip_to_keyframe = 0; |