[FFmpeg-trac] #6966(undetermined:new): Latest ffmpeg can't compile with latest x264

FFmpeg trac at avcodec.org
Sun Jan 14 13:00:30 EET 2018

#6966: Latest ffmpeg can't compile with latest x264
             Reporter:  kingprimex   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 How to reproduce:
 % BuildFFmpeg() {
     echo "Compiling ffmpeg"
     cd $source_dir
     if [ ! -f  ffmpeg-${ffmpeg_version}.tar.bz2 ]; then
         wget -4
     tar xjf ffmpeg-${ffmpeg_version}.tar.bz2
     cd ffmpeg-${ffmpeg_version}
     PKG_CONFIG_PATH="${build_dir}/lib/pkgconfig" ./configure \
         --prefix="$build_dir" \
         --extra-cflags="-fPIC -m64 -I${inc_dir}" \
         --extra-ldflags="-L${build_dir}/lib" \
         --bindir="$bin_dir" \
         --enable-gpl \
         --enable-libass \
         --enable-libfdk-aac \
         --enable-libfreetype \
         --enable-libmp3lame \
         --enable-libopus \
         --enable-libtheora \
         --enable-libvorbis \
         --enable-libvpx \
         --enable-libx264 \
         --enable-nonfree \
         --enable-nvenc \
         --enable-pic \
         --enable-libxcb \
         --extra-ldexeflags=-pie \
     make -j${cpus}
     make install


 CC      libavcodec/libopus.o
 CC      libavcodec/libopusdec.o
 CC      libavcodec/libopusenc.o
 CC      libavcodec/libtheoraenc.o
 CC      libavcodec/libvorbisdec.o
 CC      libavcodec/libvorbisenc.o
 libavcodec/libtheoraenc.c: In function ‘encode_init’:
 libavcodec/libtheoraenc.c:211:5: warning: ‘avcodec_get_chroma_sub_sample’
 is deprecated [-Wdeprecated-declarations]
      avcodec_get_chroma_sub_sample(avc_context->pix_fmt, &h->uv_hshift,
 In file included from libavcodec/libtheoraenc.c:39:0:
 libavcodec/avcodec.h:5703:6: note: declared here
  void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int
 *h_shift, int *v_shift);
 CC      libavcodec/libvpx.o
 CC      libavcodec/libvpxdec.o
 CC      libavcodec/libvpxenc.o
 CC      libavcodec/libx264.o
 CC      libavcodec/ljpegenc.o
 libavcodec/libx264.c: In function ‘X264_frame’:
 libavcodec/libx264.c:282:9: error: ‘x264_bit_depth’ undeclared (first use
 in this function)
      if (x264_bit_depth > 8)
 libavcodec/libx264.c:282:9: note: each undeclared identifier is reported
 only once for each function it appears in
 libavcodec/libx264.c: In function ‘X264_init_static’:
 libavcodec/libx264.c:892:9: error: ‘x264_bit_depth’ undeclared (first use
 in this function)
      if (x264_bit_depth == 8)

 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

Ticket URL: <https://trac.ffmpeg.org/ticket/6966>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list