aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-31 01:43:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-02 22:59:50 +0200
commit2545defeac7730cd5f4fae3c06af1f4da736afa4 (patch)
tree0148536e82f6861ad5f150d4be32768698fbe332
parent2d97ad38ed3fc5fc84742acd6db5b5403a72a574 (diff)
downloadffmpeg-2545defeac7730cd5f4fae3c06af1f4da736afa4.tar.gz
avformat/flvenc: fix assertion failure after 4h muxing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2e532aa82d2b938a3cd913a363a79bf92ddf1a33) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/flvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index c16f8ebb4a..15c9997e6b 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -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);