From 3477897e5ac60907023aaef998c0496e184879be Mon Sep 17 00:00:00 2001 From: David Conrad Date: Sat, 13 Mar 2010 05:55:57 +0000 Subject: [PATCH] oggdec: Set packet duration for ogm streams Originally committed as revision 22493 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggparseogm.c | 3 +++ 1 file changed, 3 insertions(+) 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; }