[FFmpeg-devel] [PATCH]Silence one icc warning when compiling ipmovie.c

Carl Eugen Hoyos cehoyos
Mon Dec 22 21:23:32 CET 2008


Hi!

Attached patch silences one icc warning when compiling ipmovie.c:

/home/melanson/fate/source/libavformat/ipmovie.c(573): warning #188: 
enumerated type mixed with another type
           st->codec->codec_id = ipmovie->audio_type;
                               ^

Please comment, Carl Eugen
-------------- next part --------------
Index: libavformat/ipmovie.c
===================================================================
--- libavformat/ipmovie.c	(revision 16270)
+++ libavformat/ipmovie.c	(working copy)
@@ -101,7 +101,7 @@
     unsigned int audio_bits;
     unsigned int audio_channels;
     unsigned int audio_sample_rate;
-    unsigned int audio_type;
+    enum CodecID audio_type;
     unsigned int audio_frame_count;
 
     int video_stream_index;
@@ -544,7 +544,7 @@
     url_fseek(pb, -CHUNK_PREAMBLE_SIZE, SEEK_CUR);
 
     if (chunk_type == CHUNK_VIDEO)
-        ipmovie->audio_type = 0;  /* no audio */
+        ipmovie->audio_type = CODEC_ID_NONE;  /* no audio */
     else if (process_ipmovie_chunk(ipmovie, pb, &pkt) != CHUNK_INIT_AUDIO)
         return AVERROR_INVALIDDATA;
 



More information about the ffmpeg-devel mailing list