[FFmpeg-cvslog] asfenc: remove useless casts

Ramiro Polla git at videolan.org
Wed Sep 12 16:50:37 CEST 2012


ffmpeg | branch: release/0.10 | Ramiro Polla <ramiro.polla at gmail.com> | Wed Apr  4 02:50:40 2012 -0300| [94905d2af66b197030daa8efee2913147175db92] | committer: Michael Niedermayer

asfenc: remove useless casts

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit bc13b74992c30da3cf3da9bcce6a0b727b9d2e6b)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94905d2af66b197030daa8efee2913147175db92
---

 libavformat/asfenc.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index d1bb07b..fd4ca53 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -813,13 +813,13 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt)
         if (start_sec != (int)(asf->last_indexed_pts / INT64_C(10000000))) {
             if (start_sec > asf->nb_index_memory_alloc) {
                 asf->nb_index_memory_alloc = (start_sec + ASF_INDEX_BLOCK) & ~(ASF_INDEX_BLOCK - 1);
-                asf->index_ptr = (ASFIndex*)av_realloc( asf->index_ptr, sizeof(ASFIndex) * asf->nb_index_memory_alloc );
+                asf->index_ptr = av_realloc( asf->index_ptr, sizeof(ASFIndex) * asf->nb_index_memory_alloc );
             }
             for(i=asf->nb_index_count;i<start_sec;i++) {
                 // store
-                asf->index_ptr[i].packet_number = (uint32_t)packet_number;
-                asf->index_ptr[i].packet_count  = (uint16_t)packet_count;
-                asf->maximum_packet = FFMAX(asf->maximum_packet, (uint16_t)packet_count);
+                asf->index_ptr[i].packet_number = packet_number;
+                asf->index_ptr[i].packet_count  = packet_count;
+                asf->maximum_packet = FFMAX(asf->maximum_packet, packet_count);
             }
             asf->nb_index_count = start_sec;
             asf->last_indexed_pts = pts;



More information about the ffmpeg-cvslog mailing list