diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-03-28 01:15:08 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-03-28 01:15:08 +0000 |
commit | 9b1db5ec99bb2207116844448d5202ce82dcb060 (patch) | |
tree | ec946080c8078bda7eda35a8b8ce6b1a9d3e5889 /libavformat/oggparseskeleton.c | |
parent | 66b6c7458ecf2886f5cae5ad8287e37144ab50ac (diff) | |
download | ffmpeg-9b1db5ec99bb2207116844448d5202ce82dcb060.tar.gz |
correct first pts for ogg skeleton
Originally committed as revision 22705 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparseskeleton.c')
-rw-r--r-- | libavformat/oggparseskeleton.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparseskeleton.c b/libavformat/oggparseskeleton.c index a3a5f75d15..82d249246e 100644 --- a/libavformat/oggparseskeleton.c +++ b/libavformat/oggparseskeleton.c @@ -62,6 +62,7 @@ static int skeleton_header(AVFormatContext *s, int idx) 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 @@ static int skeleton_header(AVFormatContext *s, int idx) 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); } } |