[Ffmpeg-cvslog] r6552 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Oct 4 15:18:52 CEST 2006


Author: bcoudurier
Date: Wed Oct  4 15:18:51 2006
New Revision: 6552

Modified:
   trunk/libavformat/mov.c

Log:
remove useless casts

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Oct  4 15:18:51 2006
@@ -496,7 +496,7 @@
                 get_buffer(pb, st->codec->extradata, len);
                 st->codec->extradata_size = len;
                 /* from mplayer */
-                if ((*(uint8_t *)st->codec->extradata >> 3) == 29) {
+                if ((*st->codec->extradata >> 3) == 29) {
                     st->codec->codec_id = CODEC_ID_MP3ON4;
                 }
             }
@@ -649,8 +649,8 @@
 
     if (st->codec->extradata) {
         strcpy(st->codec->extradata, "SVQ3"); // fake
-        get_buffer(pb, (uint8_t *)st->codec->extradata + 0x5a, atom.size);
-        dprintf("Reading SMI %"PRId64"  %s\n", atom.size, (char*)st->codec->extradata + 0x5a);
+        get_buffer(pb, st->codec->extradata + 0x5a, atom.size);
+        dprintf("Reading SMI %"PRId64"  %s\n", atom.size, st->codec->extradata + 0x5a);
     } else
         url_fskip(pb, atom.size);
 
@@ -689,9 +689,9 @@
     st->codec->extradata = av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
 
     if (st->codec->extradata) {
-        strcpy((char *)st->codec->extradata + 4, "alac"); // fake
-        get_buffer(pb, (uint8_t *)st->codec->extradata + 8, 36 - 8);
-        dprintf("Reading alac %d  %s\n", st->codec->extradata_size, (char*)st->codec->extradata);
+        strcpy(st->codec->extradata + 4, "alac"); // fake
+        get_buffer(pb, st->codec->extradata + 8, 36 - 8);
+        dprintf("Reading alac %d  %s\n", st->codec->extradata_size, st->codec->extradata);
     } else
         url_fskip(pb, atom.size);
     return 0;
@@ -735,8 +735,8 @@
 
     /* pass all jp2h atom to codec */
     if (st->codec->extradata) {
-        strcpy((char *)st->codec->extradata + 4, "jp2h");
-        get_buffer(pb, (uint8_t *)st->codec->extradata + 8, atom.size);
+        strcpy(st->codec->extradata + 4, "jp2h");
+        get_buffer(pb, st->codec->extradata + 8, atom.size);
     } else
         url_fskip(pb, atom.size);
     return 0;




More information about the ffmpeg-cvslog mailing list