Browse Source

oggdec: Set packet duration for ogm streams

Originally committed as revision 22493 to svn://svn.ffmpeg.org/ffmpeg/trunk
David Conrad 15 years ago
parent
commit
3477897e5a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libavformat/oggparseogm.c

+ 3 - 0
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;
 }