Commit 7ffbb60e authored by Falk Hüffner's avatar Falk Hüffner

Minor warning fix.

Originally committed as revision 977 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a9c68306
...@@ -878,7 +878,7 @@ AVCodec *avcodec_find_decoder(enum CodecID id); ...@@ -878,7 +878,7 @@ AVCodec *avcodec_find_decoder(enum CodecID id);
AVCodec *avcodec_find_decoder_by_name(const char *name); AVCodec *avcodec_find_decoder_by_name(const char *name);
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); 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_open(AVCodecContext *avctx, AVCodec *codec);
int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples, int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples,
int *frame_size_ptr, int *frame_size_ptr,
......
...@@ -67,7 +67,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){ ...@@ -67,7 +67,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){
* allocates a AVCodecContext and set it to defaults. * allocates a AVCodecContext and set it to defaults.
* this can be deallocated by simply calling free() * this can be deallocated by simply calling free()
*/ */
AVCodecContext *avcodec_alloc_context(){ AVCodecContext *avcodec_alloc_context(void){
AVCodecContext *avctx= av_mallocz(sizeof(AVCodecContext)); AVCodecContext *avctx= av_mallocz(sizeof(AVCodecContext));
if(avctx==NULL) return NULL; if(avctx==NULL) return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment