[FFmpeg-trac] #5511(avcodec:new): defect: libutvideodec compile error with utvideo 15.0.0 and later.

FFmpeg trac at avcodec.org
Thu May 5 02:17:28 CEST 2016


#5511: defect: libutvideodec compile error with utvideo 15.0.0 and later.
---------------------------------+---------------------------------------
             Reporter:  s172262  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  unspecified
             Keywords:  utvideo  |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 Summary of the bug:UtVideo's `Format.h` is not include.
 How to reproduce:Building ffmpeg with libutvideo 15.0.0 and later.
 {{{
 ...
 In file included from libavcodec/libutvideodec.cpp:29:
 In file included from libavcodec/avcodec.h:31:
 In file included from ./libavutil/samplefmt.h:24:
 In file included from ./libavutil/avutil.h:288:
 In file included from ./libavutil/common.h:467:
 In file included from ./libavutil/internal.h:39:
 In file included from ./libavutil/timer.h:36:
 In file included from
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/mach_time.h:32:
 In file included from
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/mach_types.h:109:
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/kmod.h:45:5:
 warning:
       'PRAGMA_MARK' is not defined, evaluates to 0 [-Wundef]
 #if PRAGMA_MARK
     ^
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/kmod.h:62:5:
 warning:
       'PRAGMA_MARK' is not defined, evaluates to 0 [-Wundef]
 #if PRAGMA_MARK
     ^
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/kmod.h:138:5:
 warning:
       'PRAGMA_MARK' is not defined, evaluates to 0 [-Wundef]
 #if PRAGMA_MARK
     ^
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/kmod.h:160:5:
 warning:
       'PRAGMA_MARK' is not defined, evaluates to 0 [-Wundef]
 #if PRAGMA_MARK
     ^
 /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/kmod.h:168:5:
 warning:
       'PRAGMA_MARK' is not defined, evaluates to 0 [-Wundef]
 #if PRAGMA_MARK
     ^
 libavcodec/libutvideodec.cpp:110:12: warning: 'coded_frame' is deprecated
       [-Wdeprecated-declarations]
     avctx->coded_frame = av_frame_alloc();
            ^
 libavcodec/avcodec.h:2945:35: note: 'coded_frame' has been explicitly
 marked
       deprecated here
     attribute_deprecated AVFrame *coded_frame;
                                   ^
 libavcodec/libutvideodec.cpp:116:12: warning: 'coded_frame' is deprecated
       [-Wdeprecated-declarations]
     avctx->coded_frame->interlaced_frame = info.flags & 0x800 ? 1 : 0;
            ^
 libavcodec/avcodec.h:2945:35: note: 'coded_frame' has been explicitly
 marked
       deprecated here
     attribute_deprecated AVFrame *coded_frame;
                                   ^
 libavcodec/libutvideodec.cpp:119:12: warning: 'coded_frame' is deprecated
       [-Wdeprecated-declarations]
     avctx->coded_frame->top_field_first = 1;
            ^
 libavcodec/avcodec.h:2945:35: note: 'coded_frame' has been explicitly
 marked
       deprecated here
     attribute_deprecated AVFrame *coded_frame;
                                   ^
 libavcodec/libutvideodec.cpp:125:41: error: use of undeclared identifier
 'UNFCC'
     utv->codec = CCodec::CreateInstance(UNFCC(avctx->codec_tag),
 "libavcodec");
                                         ^
 libavcodec/libutvideodec.cpp:129:51: error: too many arguments to function
 call,
       expected 4, have 6
                             CBGROSSWIDTH_WINDOWS, &info,
 sizeof(UtVideoExtra));
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 /usr/local/include/utvideo/Codec.h:47:2: note: 'DecodeBegin' declared here
         virtual int DecodeBegin(unsigned int width, unsigned int height...
         ^
 libavcodec/libutvideodec.cpp:145:27: warning: 'coded_frame' is deprecated
       [-Wdeprecated-declarations]
     AVFrame *pic = avctx->coded_frame;
                           ^
 libavcodec/avcodec.h:2945:35: note: 'coded_frame' has been explicitly
 marked
       deprecated here
     attribute_deprecated AVFrame *coded_frame;
                                   ^
 libavcodec/libutvideodec.cpp:153:59: error: too few arguments to function
 call,
       expected 4, have 3
     utv->codec->DecodeFrame(utv->buffer, avpkt->data, true);
     ~~~~~~~~~~~~~~~~~~~~~~~                               ^
 /usr/local/include/utvideo/Codec.h:48:2: note: 'DecodeFrame' declared here
         virtual size_t DecodeFrame(void *pOutput, const void *pInput,
 ut...
         ^
 libavcodec/libutvideodec.cpp:247:27: warning: 'coded_frame' is deprecated
       [-Wdeprecated-declarations]
     av_frame_free(&avctx->coded_frame);
                           ^
 libavcodec/avcodec.h:2945:35: note: 'coded_frame' has been explicitly
 marked
       deprecated here
     attribute_deprecated AVFrame *coded_frame;
                                   ^
 13 warnings and 3 errors generated.
 make: *** [libavcodec/libutvideodec.o] Error 1
 }}}




 Since Utvideo 15.0.0, `UNFCC` has moved from `utvideo.h` to `Format.h`.
 So `libutvideo.h` must linclude `Format.h`

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


More information about the FFmpeg-trac mailing list