[FFmpeg-devel] [PATCH]Fix warning when compiling h264.c

Carl Eugen Hoyos cehoyos
Mon Sep 29 12:36:54 CEST 2008


Hi!

Attached patch fixes the following warning when compiling h264.c (with 
icc) that was introduced in r15412:
libavcodec/h264.c(3934): warning #266: function "copy_picture" declared
implicitly
           copy_picture(&s->last_picture, s->last_picture_ptr);
           ^

libavcodec/h264.c(3938): warning #266: function "copy_picture" declared
implicitly
           copy_picture(&s->next_picture, s->next_picture_ptr);
           ^

gcc:
libavcodec/h264.c: In function ?decode_slice_header?:
libavcodec/h264.c:3934: warning: implicit declaration of function
?copy_picture?

Carl Eugen
-------------- next part --------------
Index: libavcodec/mpegvideo_common.h
===================================================================
--- libavcodec/mpegvideo_common.h	(Revision 15461)
+++ libavcodec/mpegvideo_common.h	(Arbeitskopie)
@@ -41,7 +41,6 @@
 int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow);
 int dct_quantize_trellis_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow);
 void  denoise_dct_c(MpegEncContext *s, DCTELEM *block);
-void copy_picture(Picture *dst, Picture *src);
 
 /**
  * allocates a Picture
Index: libavcodec/mpegvideo.h
===================================================================
--- libavcodec/mpegvideo.h	(Revision 15461)
+++ libavcodec/mpegvideo.h	(Arbeitskopie)
@@ -701,6 +701,7 @@
                        const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra);
 
 void ff_init_block_index(MpegEncContext *s);
+void copy_picture(Picture *dst, Picture *src);
 
 static inline void ff_update_block_index(MpegEncContext *s){
     const int block_size= 8>>s->avctx->lowres;



More information about the ffmpeg-devel mailing list