[FFmpeg-devel] [PATCH] Fix warning about decode_mb_skip (in libavcodec/h264.h)

Eli Friedman eli.friedman
Wed Jun 30 07:06:12 CEST 2010

Patch attached; fixes warning "'decode_mb_skip' defined but not used".
 As far as I can tell, doesn't have any significant effect on the
generated code, since the function in question gets inlined either

-------------- next part --------------
Index: libavcodec/h264.h
--- libavcodec/h264.h	(revision 23854)
+++ libavcodec/h264.h	(working copy)
@@ -1255,7 +1255,7 @@
  * decodes a P_SKIP or B_SKIP macroblock
-static void decode_mb_skip(H264Context *h){
+static inline void decode_mb_skip(H264Context *h){
     MpegEncContext * const s = &h->s;
     const int mb_xy= h->mb_xy;
     int mb_type=0;

More information about the ffmpeg-devel mailing list