changeset 5833:c4d0166d9128 libavformat

oggdec: Set packet duration for ogm streams
author conrad
date Sat, 13 Mar 2010 05:55:57 +0000
parents cf9f77508e9c
children 134741dc8327
files oggparseogm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/oggparseogm.c	Fri Mar 12 23:49:06 2010 +0000
+++ b/oggparseogm.c	Sat Mar 13 05:55:57 2010 +0000
@@ -149,6 +149,9 @@
     os->pstart += lb + 1;
     os->psize -= lb + 1;
 
+    while (lb--)
+        os->pduration += p[lb+1] << (lb*8);
+
     return 0;
 }