[FFmpeg-trac] #1399(avformat:new): ffmpeg fails to compile with bintext demuxer disabled and either xbin, adf or idf demuxers enabled

FFmpeg trac at avcodec.org
Sun Jun 3 09:19:07 CEST 2012


#1399: ffmpeg fails to compile with bintext demuxer disabled and either xbin, adf
or idf demuxers enabled
-------------------------------------+-------------------------------------
             Reporter:  jamal        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  git-
             Keywords:  bintext      |  master
  xbin adf idf demuxer               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 The following configurations fail:

 {{{
 ./configure --disable-everything --enable-demuxer=xbin
 ./configure --disable-everything --enable-demuxer=adf
 ./configure --disable-everything --enable-demuxer=idf
 }}}

 All giving the same error, save for the "In function" line which varies
 depending on which of those three demuxer is enabled:

 {{{
 CC      libavformat/bintext.o
 libavformat/bintext.c: In function 'xbin_read_header':
 libavformat/bintext.c:193:5: error: implicit declaration of function
 'init_stream' [-Werror=implicit-function-declaration]
 libavformat/bintext.c:193:20: warning: initialization makes pointer from
 integer without a cast [enabled by default]
 cc1.exe: some warnings being treated as errors
 }}}

 The problem is that the function init_stream() is inside an #if directive
 that needs the bintext demuxer enabled in order to be compiled.
 Said function should be outside that #if directive since it's needed by
 all four demuxers.

 For the record, i wanted to mention that i found this problem purely by
 chance thanks to the --enable-random feature added to git-master a few
 hours ago.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1399>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list