[FFmpeg-trac] #3800(avutil:new): AVUTIL/BPRINT.H: C++ "error: types may not be defined in 'sizeof' expressions"

FFmpeg trac at avcodec.org
Thu Jul 24 04:39:32 CEST 2014


#3800: AVUTIL/BPRINT.H: C++ "error: types may not be defined in 'sizeof'
expressions"
-------------------------------------+-------------------------------------
             Reporter:  troy_s       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avutil       |                  Version:  git-
             Keywords:  c++          |  master
  bprint.h                           |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 When using FFMPEG git trunk, C++ mixed code fails on bprint.h with "error:
 types may not be defined in 'sizeof' expressions"

 How to reproduce:

 Attempt mixing FFMPEG C code with a C++ application. Tested with g++ 4.6
 and 4.8.

 {{{
 In file included from /usr/local/include/libavformat/avio.h:34:0,
                  from /usr/local/include/libavformat/avformat.h:259,
                  from ../YCbCrExporter/ffsequence.h:29,
                  from ../YCbCrExporter/ffsequence.cpp:21:
 /usr/local/include/libavutil/bprint.h:78:5: error: types may not be
 defined in ‘sizeof’ expressions
 }}}

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


More information about the FFmpeg-trac mailing list