changeset 5900:79084b40586c libavformat

correct first pts for ogg skeleton
author aurel
date Sun, 28 Mar 2010 01:15:08 +0000
parents d80731fed8ee
children 7028f9476da4
files oggparseskeleton.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/oggparseskeleton.c	Sat Mar 27 21:14:16 2010 +0000
+++ b/oggparseskeleton.c	Sun Mar 28 01:15:08 2010 +0000
@@ -62,6 +62,7 @@
         if (start_den) {
             av_reduce(&start_time, &st->time_base.den, start_num, start_den, INT_MAX);
             st->time_base.num = 1;
+            os->lastpts =
             st->start_time = start_time;
         }
     } else if (!strncmp(buf, "fisbone", 8)) {
@@ -71,6 +72,7 @@
         target_idx = ogg_find_stream(ogg, AV_RL32(buf+12));
         start_granule = AV_RL64(buf+36);
         if (target_idx >= 0 && start_granule != -1) {
+            ogg->streams[target_idx].lastpts =
             s->streams[target_idx]->start_time = ogg_gptopts(s, target_idx, start_granule, NULL);
         }
     }