[FFmpeg-cvslog] r15045 - trunk/libavformat/flvenc.c

bcoudurier subversion
Sat Aug 30 05:07:31 CEST 2008


Author: bcoudurier
Date: Sat Aug 30 05:07:31 2008
New Revision: 15045

Log:
timestamps in flv are 32bits _signed_ according to flash player, specs are wrong

Modified:
   trunk/libavformat/flvenc.c

Modified: trunk/libavformat/flvenc.c
==============================================================================
--- trunk/libavformat/flvenc.c	(original)
+++ trunk/libavformat/flvenc.c	Sat Aug 30 05:07:31 2008
@@ -351,7 +351,7 @@ static int flv_write_packet(AVFormatCont
     ts = pkt->dts + flv->delay; // add delay to force positive dts
     put_be24(pb,size + flags_size);
     put_be24(pb,ts);
-    put_byte(pb,ts >> 24);
+    put_byte(pb,(ts >> 24) & 0x7F); // timestamps are 32bits _signed_
     put_be24(pb,flv->reserved);
     put_byte(pb,flags);
     if (enc->codec_id == CODEC_ID_VP6)




More information about the ffmpeg-cvslog mailing list