[FFmpeg-devel] [PATCH]Silence two icc warnings
Carl Eugen Hoyos
cehoyos
Mon Dec 22 20:59:05 CET 2008
Hi!
Attached patch fixes two warnings when compiling with icc:
/home/melanson/fate/source/ffserver.c(4349): warning #188: enumerated type
mixed with another type
audio_enc.codec_id = audio_id;
^
/home/melanson/fate/source/ffserver.c(4354): warning #188: enumerated type
mixed with another type
video_enc.codec_id = video_id;
^
Please comment, Carl Eugen
-------------- next part --------------
Index: ffserver.c
===================================================================
--- ffserver.c (revision 16270)
+++ ffserver.c (working copy)
@@ -3686,7 +3686,7 @@
memcpy(st->codec, av, sizeof(AVCodecContext));
}
-static int opt_audio_codec(const char *arg)
+static enum CodecID opt_audio_codec(const char *arg)
{
AVCodec *p= avcodec_find_encoder_by_name(arg);
@@ -3696,7 +3696,7 @@
return p->id;
}
-static int opt_video_codec(const char *arg)
+static enum CodecID opt_video_codec(const char *arg)
{
AVCodec *p= avcodec_find_encoder_by_name(arg);
@@ -3753,7 +3753,7 @@
FFStream **last_stream, *stream, *redirect;
FFStream **last_feed, *feed;
AVCodecContext audio_enc, video_enc;
- int audio_id, video_id;
+ enum CodecID audio_id, video_id;
f = fopen(filename, "r");
if (!f) {
More information about the ffmpeg-devel
mailing list