[FFmpeg-cvslog] avformat/flvenc: fix assertion failure after 4h muxing

Michael Niedermayer git at videolan.org
Mon Jun 2 23:06:55 CEST 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Sat May 31 01:43:41 2014 +0200| [2545defeac7730cd5f4fae3c06af1f4da736afa4] | committer: Michael Niedermayer

avformat/flvenc: fix assertion failure after 4h muxing

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 2e532aa82d2b938a3cd913a363a79bf92ddf1a33)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2545defeac7730cd5f4fae3c06af1f4da736afa4
---

 libavformat/flvenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index c16f8eb..15c9997 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);
 



More information about the ffmpeg-cvslog mailing list