[FFmpeg-soc] [soc]: r4036 - amr/amrnbfloatdec.c

kmalaussene subversion at mplayerhq.hu
Tue Feb 10 22:18:20 CET 2009


Author: kmalaussene
Date: Tue Feb 10 22:18:18 2009
New Revision: 4036

Log:
Fix compiler warning on amrnb_decode_frame:
"initialization from incompatible pointer type".

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Tue Feb 10 22:12:57 2009	(r4035)
+++ amr/amrnbfloatdec.c	Tue Feb 10 22:18:18 2009	(r4036)
@@ -145,7 +145,7 @@ static av_cold int amrnb_decode_init(AVC
  * @return the frame mode
  */
 
-enum Mode decode_bitstream(AMRContext *p, uint8_t *buf, int buf_size,
+enum Mode decode_bitstream(AMRContext *p, const uint8_t *buf, int buf_size,
                            enum Mode *speech_mode)
 {
     enum Mode mode;
@@ -1009,7 +1009,7 @@ static void update_state(AMRContext *p)
 
 
 static int amrnb_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
 
     AMRContext *p = avctx->priv_data;        // pointer to private data



More information about the FFmpeg-soc mailing list