# HG changeset patch # User bcoudurier # Date 1220065651 0 # Node ID be10880770f1be61cafeddb84cb80a27bc42237b # Parent a6400b4fd5cbebd3d90e5e5f4d0072dc4466a76b timestamps in flv are 32bits _signed_ according to flash player, specs are wrong diff -r a6400b4fd5cb -r be10880770f1 flvenc.c --- a/flvenc.c Sat Aug 30 03:01:59 2008 +0000 +++ b/flvenc.c Sat Aug 30 03:07:31 2008 +0000 @@ -351,7 +351,7 @@ 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)