[FFmpeg-devel] make checkheaders fails on qcelpdata.h

David Geldreich david.geldreich
Mon Nov 24 22:06:19 CET 2008


Hi ffmpegers,

on OSX (10.5.5), gcc (4.0.1 and 4.2.1), "./configure; make  
checkheaders" fails on qcelpdata.h

Adding stddef.h corrects the offset macro missing problem. But for the  
QCELPContext structure we could not have its definition unless we have  
QCELP installed. What is the prerequesite to be able to run "make  
checkheaders"

libavcodec/qcelpdata.h:59: warning: implicit declaration of function  
?offsetof?
libavcodec/qcelpdata.h:59: error: ?QCELPContext? undeclared here (not  
in a function)
libavcodec/qcelpdata.h:59: error: ?lspv? undeclared here (not in a  
function)
libavcodec/qcelpdata.h:59: error: initializer element is not constant
libavcodec/qcelpdata.h:59: error: (near initialization for  
?qcelp_rate_full_bitmap[0].index?)
libavcodec/qcelpdata.h:60: error: initializer element is not constant
libavcodec/qcelpdata.h:60: error: (near initialization for  
?qcelp_rate_full_bitmap[1].index?)

Partial patch to correct the checkheaders failure :

Index: libavcodec/qcelpdata.h
===================================================================
--- libavcodec/qcelpdata.h	(revision 15925)
+++ libavcodec/qcelpdata.h	(working copy)
@@ -30,6 +30,7 @@
   */

  #include <stdint.h>
+#include <stddef.h>

  /**
   * pre-calculated table for hammsinc function





More information about the ffmpeg-devel mailing list