changeset 3801:a6400b4fd5cb libavformat

remove now useless casts
author bcoudurier
date Sat, 30 Aug 2008 03:01:59 +0000
parents 88e7a94697d3
children be10880770f1
files flvenc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flvenc.c	Fri Aug 29 22:13:22 2008 +0000
+++ b/flvenc.c	Sat Aug 30 03:01:59 2008 +0000
@@ -344,8 +344,8 @@
         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 @@
         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