diff matroskadec.c @ 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 b7f86452706e
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);
         }
     }