Commit b83a00b8 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

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

Originally committed as revision 15045 to svn://
parent 6f4eb12d
......@@ -351,7 +351,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
ts = pkt->dts + flv->delay; // add delay to force positive dts
put_be24(pb,size + flags_size);
put_byte(pb,ts >> 24);
put_byte(pb,(ts >> 24) & 0x7F); // timestamps are 32bits _signed_
if (enc->codec_id == CODEC_ID_VP6)
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