diff flvdec.c @ 2756:8258fb5a6aa0 libavformat

Honor the 8bit extension (now 32bit instaed 24bit) of the pts field introduced in FLV specification v9.
author alex
date Fri, 16 Nov 2007 00:09:34 +0000
parents d320b2990d7e
children d52c718e83f9
line wrap: on
line diff
--- a/flvdec.c	Thu Nov 15 23:53:19 2007 +0000
+++ b/flvdec.c	Fri Nov 16 00:09:34 2007 +0000
@@ -275,10 +275,11 @@
     type = get_byte(&s->pb);
     size = get_be24(&s->pb);
     pts = get_be24(&s->pb);
+    pts |= get_byte(&s->pb) << 24;
 //    av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts);
     if (url_feof(&s->pb))
         return AVERROR(EIO);
-    url_fskip(&s->pb, 4); /* reserved */
+    url_fskip(&s->pb, 3); /* stream id, always 0 */
     flags = 0;
 
     if(size == 0)