diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 6c33a304fe33c0bc53539b5fbc3bca9438204181..b245c359d2dc29a62308202130c11291810033e6 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -878,7 +878,7 @@ AVCodec *avcodec_find_decoder(enum CodecID id);
 AVCodec *avcodec_find_decoder_by_name(const char *name);
 void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
 
-AVCodecContext *avcodec_alloc_context();
+AVCodecContext *avcodec_alloc_context(void);
 int avcodec_open(AVCodecContext *avctx, AVCodec *codec);
 int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples, 
                          int *frame_size_ptr,
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 933638f5c9d034c6dddda60c67d22db0d47f9706..8271d4c648ffc67c68dc76f479079d05cef8282c 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -67,7 +67,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){
  * allocates a AVCodecContext and set it to defaults.
  * this can be deallocated by simply calling free() 
  */
-AVCodecContext *avcodec_alloc_context(){
+AVCodecContext *avcodec_alloc_context(void){
     AVCodecContext *avctx= av_mallocz(sizeof(AVCodecContext));
     
     if(avctx==NULL) return NULL;