Commit 2e532aa8 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/flvenc: fix assertion failure after 4h muxing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f128342d
......@@ -536,7 +536,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
sc->last_ts = ts;
avio_wb24(pb, size + flags_size);
avio_wb24(pb, ts);
avio_wb24(pb, ts & 0xFFFFFF);
avio_w8(pb, (ts >> 24) & 0x7F); // timestamps are 32 bits _signed_
avio_wb24(pb, flv->reserved);
......
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