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

Carl Eugen Hoyos cehoyos
Mon Dec 22 21:07:44 CET 2008


Hi!

Attached patch fixes one warning when compiling qcelpdec.c with icc:

/home/melanson/fate/source/libavcodec/qcelpdec.c(693): warning #188: 
enumerated type mixed with another type
       if((q->bitrate = determine_bitrate(avctx, buf_size, &buf)) == I_F_Q)
                      ^

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/qcelpdec.c
===================================================================
--- libavcodec/qcelpdec.c	(revision 16270)
+++ libavcodec/qcelpdec.c	(working copy)
@@ -633,7 +633,7 @@
  *
  * TIA/EIA/IS-733 2.4.8.7.1
  */
-static int determine_bitrate(AVCodecContext *avctx, const int buf_size,
+static qcelp_packet_rate determine_bitrate(AVCodecContext *avctx, const int buf_size,
                              const uint8_t **buf)
 {
     qcelp_packet_rate bitrate;



More information about the ffmpeg-devel mailing list