projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b6c74
)
correct first pts for ogg skeleton
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 28 Mar 2010 01:15:08 +0000
(
01:15
+0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 28 Mar 2010 01:15:08 +0000
(
01:15
+0000)
Originally committed as revision 22705 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/oggparseskeleton.c
patch
|
blob
|
history
diff --git
a/libavformat/oggparseskeleton.c
b/libavformat/oggparseskeleton.c
index
a3a5f75
..
82d2492
100644
(file)
--- 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);
}
}