Mercurial > libavformat.hg
changeset 3802:be10880770f1 libavformat
timestamps in flv are 32bits _signed_ according to flash player, specs are wrong
author | bcoudurier |
---|---|
date | Sat, 30 Aug 2008 03:07:31 +0000 |
parents | a6400b4fd5cb |
children | 622ecee1482b |
files | flvenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)