[FFmpeg-devel,8/8] avformat/matroskadec: Remove unused variable

Submitted by Andreas Rheinhardt on Sept. 5, 2019, 8:16 p.m.

Details

Message ID 20190905201609.998-8-andreas.rheinhardt@gmail.com
State New
Headers show

Commit Message

Andreas Rheinhardt Sept. 5, 2019, 8:16 p.m.
index_scale in matroska_add_index_entries is effectively unused
since 4f7d9b77.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/matroskadec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 10df4cce45..f4393a513d 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1885,7 +1885,6 @@  static void matroska_add_index_entries(MatroskaDemuxContext *matroska)
 {
     EbmlList *index_list;
     MatroskaIndex *index;
-    uint64_t index_scale = 1;
     int i, j;
 
     if (matroska->ctx->flags & AVFMT_FLAG_IGNIDX)
@@ -1915,7 +1914,7 @@  static void matroska_add_index_entries(MatroskaDemuxContext *matroska)
 
             if (track && track->stream)
                 av_add_index_entry(track->stream, abs_pos,
-                                   index[i].time / index_scale, 0, 0,
+                                   index[i].time, 0, 0,
                                    AVINDEX_KEYFRAME);
         }
     }