aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flvenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-31 01:43:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-31 01:43:41 +0200
commit2e532aa82d2b938a3cd913a363a79bf92ddf1a33 (patch)
tree8e8a15434b264ef4acc4b4a8a7c51620e34f1db0 /libavformat/flvenc.c
parentf128342df277e9864ef5611b5bbffaf36cc9b9b1 (diff)
downloadffmpeg-2e532aa82d2b938a3cd913a363a79bf92ddf1a33.tar.gz
avformat/flvenc: fix assertion failure after 4h muxing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r--libavformat/flvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 1d8af3388d..cebc25a5ad 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);