Commit 5a20c533 authored by bcoudurier's avatar bcoudurier

remove now useless casts

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15044 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4d77bead
...@@ -344,8 +344,8 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -344,8 +344,8 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
assert(pkt->size); assert(pkt->size);
size = pkt->size; size = pkt->size;
/* cast needed to get negative value */ /* cast needed to get negative value */
if (!flv->delay && (int32_t)pkt->dts < 0) if (!flv->delay && pkt->dts < 0)
flv->delay = -(int32_t)pkt->dts; flv->delay = -pkt->dts;
} }
ts = pkt->dts + flv->delay; // add delay to force positive 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) ...@@ -362,7 +362,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
put_byte(pb,1); // AAC raw put_byte(pb,1); // AAC raw
else if (enc->codec_id == CODEC_ID_H264) { else if (enc->codec_id == CODEC_ID_H264) {
put_byte(pb,1); // AVC NALU 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_buffer(pb, pkt->data, size);
put_be32(pb,size+flags_size+11); // previous tag size put_be32(pb,size+flags_size+11); // previous tag size
......
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