Commit 52089983 authored by kostya's avatar kostya

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

proper position

Patch by trueice (his gmail account is obvious)



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23305 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bac08774
...@@ -752,7 +752,7 @@ static int get_packet(URLContext *s, int for_header) ...@@ -752,7 +752,7 @@ static int get_packet(URLContext *s, int for_header)
data_size = bytestream_get_be24(&next); data_size = bytestream_get_be24(&next);
p=next; p=next;
cts = bytestream_get_be24(&next); cts = bytestream_get_be24(&next);
cts |= bytestream_get_byte(&next); cts |= bytestream_get_byte(&next) << 24;
if (pts==0) if (pts==0)
pts=cts; pts=cts;
ts += cts - pts; ts += cts - pts;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment