summaryrefslogtreecommitdiff
path: root/libavformat/oggparseogm.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-03-13 05:55:57 +0000
committerDavid Conrad <lessen42@gmail.com>2010-03-13 05:55:57 +0000
commit3477897e5ac60907023aaef998c0496e184879be (patch)
tree63567a88854583ef139dcf0a43441a2ddb49c834 /libavformat/oggparseogm.c
parent6b10228a5505fdb7f762b6ee9d80b83e8d025006 (diff)
oggdec: Set packet duration for ogm streams
Originally committed as revision 22493 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparseogm.c')
-rw-r--r--libavformat/oggparseogm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c
index 0738d65b52..01464839c4 100644
--- a/libavformat/oggparseogm.c
+++ b/libavformat/oggparseogm.c
@@ -149,6 +149,9 @@ ogm_packet(AVFormatContext *s, int idx)
os->pstart += lb + 1;
os->psize -= lb + 1;
+ while (lb--)
+ os->pduration += p[lb+1] << (lb*8);
+
return 0;
}