[FFmpeg-trac] #5653(build system:new): ffmpeg git master compile error on qsvenc_h264.c

FFmpeg trac at avcodec.org
Sun Jun 19 16:32:08 CEST 2016


#5653: ffmpeg git master compile error on qsvenc_h264.c
-------------------------------------+-------------------------------------
             Reporter:  bermond      |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  build        |                  Version:  git-
  system                             |  master
             Keywords:  qsvenc qsv   |               Blocked By:
  h264_qsv libmfx intel              |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I'm getting the following compile error on `qsvenc_h264.c` when trying to
 compile ffmpeg git master on linux x86_64:

 {{{
 CC      libavcodec/qsvenc_h264.o
 libavcodec/qsvenc_h264.c: In function ‘qsv_h264_set_encode_ctrl’:
 libavcodec/qsvenc_h264.c:46:9: error: ‘q’ undeclared (first use in this
 function)
      if (q->a53_cc && frame) {
          ^
 libavcodec/qsvenc_h264.c:46:9: note: each undeclared identifier is
 reported only once for each function it appears in
 libavcodec/qsvenc_h264.c:49:24: warning: unused variable ‘q’ [-Wunused-
 variable]
          QSVEncContext *q = &qh264->qsv;
                         ^
 libavcodec/qsvenc_h264.c:47:26: warning: unused variable ‘side_data’
 [-Wunused-variable]
          AVFrameSideData *side_data = NULL;
                           ^~~~~~~~~
 make: *** [common.mak:60: libavcodec/qsvenc_h264.o] Error 1
 }}}

 I can confirm that ffmpeg git master was compiling perfectly until commit
 [http://git.videolan.org/?p=ffmpeg.git;a=commit;h=0fcc252829a58f25fada8a93278bfb2ac29f2237
 0fcc252] and started to give this error after the introduction of a bunch
 of H.264 commits that followed that one.

 Tried to use libmfx from lu-zero and from Intel Media SDK. Both give the
 same error.
 Using GCC version 6.1.1.

 How to reproduce (using libmfx from lu-zero):
 {{{
 $ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg-full-git
 $ cd ffmpeg-full-git
 $ ./configure --prefix="/usr" --enable-libmfx
 $ make
 }}}

 How to reproduce (using libmfx from Intel Media SDK):
 {{{
 $ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg-full-git
 $ cd ffmpeg-full-git
 $ ./configure --extra-cflags="-I/opt/intel/mediasdk/include" --extra-
 ldflags="-L/opt/intel/mediasdk/lib/lin_x64"
 --pkgconfigdir="/opt/intel/mediasdk/lib/pkgconfig" --prefix="/usr"
 --enable-libmfx
 $ make
 }}}

 Thank you.

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


More information about the FFmpeg-trac mailing list