changeset 6055:1e49d06baf93 libavformat

24l trocadero: RTMP reader forgot to shift high byte of timestamp to its proper position Patch by trueice (his gmail account is obvious)
author kostya
date Tue, 25 May 2010 07:01:04 +0000
parents a198eb01f895
children fa395d94bd4a
files rtmpproto.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtmpproto.c	Mon May 24 23:37:33 2010 +0000
+++ b/rtmpproto.c	Tue May 25 07:01:04 2010 +0000
@@ -752,7 +752,7 @@
                 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;