changeset 3409:524179afafe7 libavformat

matroskadec: use the proper timestamp scaling for index entries
author aurel
date Sun, 01 Jun 2008 14:41:53 +0000
parents da09478c97ce
children 18239c59049b
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Sun Jun 01 13:54:11 2008 +0000
+++ b/matroskadec.c	Sun Jun 01 14:41:53 2008 +0000
@@ -2692,7 +2692,7 @@
             stream = matroska->tracks[track]->stream_index;
             if (stream >= 0 && stream < matroska->ctx->nb_streams)
                 av_add_index_entry(matroska->ctx->streams[stream],
-                                   idx->pos, idx->time/matroska->time_scale,
+                                   idx->pos, idx->time/AV_TIME_BASE,
                                    0, 0, AVINDEX_KEYFRAME);
         }
     }