summaryrefslogtreecommitdiff
path: root/libavformat/flvenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-08-30 03:07:31 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-08-30 03:07:31 +0000
commitb83a00b8b6fc489566b888995ffc8cc44a71b2d8 (patch)
tree17a59c1833efe751090f279b93d61379128d32d0 /libavformat/flvenc.c
parent6f4eb12d31e83baeb9cc9690ea0a777432c3068b (diff)
timestamps in flv are 32bits _signed_ according to flash player, specs are wrong
Originally committed as revision 15045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r--libavformat/flvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 7fecd57eca..81c43bf4c9 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -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_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)