[FFmpeg-cvslog] r23305 - trunk/libavformat/rtmpproto.c

kostya subversion
Tue May 25 09:01:05 CEST 2010


Author: kostya
Date: Tue May 25 09:01:04 2010
New Revision: 23305

Log:
24l trocadero: RTMP reader forgot to shift high byte of timestamp to its
proper position

Patch by trueice (his gmail account is obvious)

Modified:
   trunk/libavformat/rtmpproto.c

Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c	Tue May 25 05:19:54 2010	(r23304)
+++ trunk/libavformat/rtmpproto.c	Tue May 25 09:01:04 2010	(r23305)
@@ -752,7 +752,7 @@ static int get_packet(URLContext *s, int
                 data_size = bytestream_get_be24(&next);
                 p=next;
                 cts = bytestream_get_be24(&next);
-                cts |= bytestream_get_byte(&next);
+                cts |= bytestream_get_byte(&next) << 24;
                 if (pts==0)
                     pts=cts;
                 ts += cts - pts;



More information about the ffmpeg-cvslog mailing list