diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-30 03:01:59 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-30 03:01:59 +0000 |
commit | 6f4eb12d31e83baeb9cc9690ea0a777432c3068b (patch) | |
tree | c38b659844a6fdb27d83e951e200483cee10b262 | |
parent | ca9c5a4d3768b986da537b16530906d3a553e881 (diff) | |
download | ffmpeg-6f4eb12d31e83baeb9cc9690ea0a777432c3068b.tar.gz |
remove now useless casts
Originally committed as revision 15044 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/flvenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index d496d93ff6..7fecd57eca 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -344,8 +344,8 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) assert(pkt->size); size = pkt->size; /* cast needed to get negative value */ - if (!flv->delay && (int32_t)pkt->dts < 0) - flv->delay = -(int32_t)pkt->dts; + if (!flv->delay && pkt->dts < 0) + flv->delay = -pkt->dts; } ts = pkt->dts + flv->delay; // add delay to force positive dts @@ -362,7 +362,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) put_byte(pb,1); // AAC raw else if (enc->codec_id == CODEC_ID_H264) { put_byte(pb,1); // AVC NALU - put_be24(pb,pkt->pts - (int32_t)pkt->dts); + put_be24(pb,pkt->pts - pkt->dts); } put_buffer(pb, pkt->data, size); put_be32(pb,size+flags_size+11); // previous tag size |