[FFmpeg-trac] #3569(avdevice:new): "initializer element is not constant" compiling bug in libavdevice/avfoundation.m

FFmpeg trac at avcodec.org
Thu Apr 17 00:18:35 CEST 2014


#3569: "initializer element is not constant" compiling bug in
libavdevice/avfoundation.m
----------------------------------+--------------------------------------
             Reporter:  xnohat    |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avdevice  |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Error when compiling avfoundation.m in Mac OS Maverick, gcc 4.2:


 {{{
 libavdevice/avfoundation.m:43: error: initializer element is not constant
 libavdevice/avfoundation.m:43: error: (near initialization for
 ‘avf_time_base_q.den’)
 libavdevice/avfoundation.m: In function ‘avf_read_header’:
 }}}


 '''Bug in'''


 {{{
 static const int avf_time_base = 100;

 static const AVRational avf_time_base_q = {
     .num = 1,
     .den = avf_time_base # <--- bug here
 };

 }}}


 it should be patch with:


 {{{
 .den = 100
 }}}

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


More information about the FFmpeg-trac mailing list