[FFmpeg-cvslog] r22493 - trunk/libavformat/oggparseogm.c

conrad subversion
Sat Mar 13 06:55:58 CET 2010


Author: conrad
Date: Sat Mar 13 06:55:57 2010
New Revision: 22493

Log:
oggdec: Set packet duration for ogm streams

Modified:
   trunk/libavformat/oggparseogm.c

Modified: trunk/libavformat/oggparseogm.c
==============================================================================
--- trunk/libavformat/oggparseogm.c	Sat Mar 13 00:49:06 2010	(r22492)
+++ trunk/libavformat/oggparseogm.c	Sat Mar 13 06:55:57 2010	(r22493)
@@ -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;
 }
 



More information about the ffmpeg-cvslog mailing list