From cc9aae7926e3b6fdd504a884fa1952fb51468431 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 15 Mar 2023 23:53:05 +0100 Subject: [PATCH] Ah yes, bug from 2018, a great vintage. --- lib/rtmpchunks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rtmpchunks.cpp b/lib/rtmpchunks.cpp index 5f9d33f0..a3c977ac 100644 --- a/lib/rtmpchunks.cpp +++ b/lib/rtmpchunks.cpp @@ -453,10 +453,10 @@ bool RTMPStream::Chunk::Parse(Socket::Buffer &buffer){ return false; }// can't read timestamp indata = buffer.copy(i + 4); - timestamp += indata[i++] * 256 * 256 * 256; + timestamp = indata[i++] * 256 * 256 * 256; timestamp += indata[i++] * 256 * 256; timestamp += indata[i++] * 256; - timestamp = indata[i++]; + timestamp += indata[i++]; ts_delta = timestamp; DONTEVEN_MSG("Extended timestamp: %" PRIu64, timestamp); }