Opened 10 years ago

Last modified 10 years ago

#1750 closed defect

Compilation error with newer ffmpeg version — at Version 2

Reported by: ismangil Owned by: nanang
Priority: normal Milestone: release-2.3
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by ismangil)

Newer ffmpeg version changed variable names, resulting in build error:

In file included from ../src/pjmedia/ffmpeg_util.c:26:
../src/pjmedia/ffmpeg_util.h:50:12: warning: declaration of 'enum CodecID' will
      not be visible outside of this function [-Wvisibility]
                                         enum CodecID *codec_id);
                                              ^
../src/pjmedia/ffmpeg_util.h:52:47: warning: declaration of 'enum CodecID' will
      not be visible outside of this function [-Wvisibility]
pj_status_t CodecID_to_pjmedia_format_id(enum CodecID codec_id,
                                              ^
../src/pjmedia/ffmpeg_util.c:65:18: error: field has incomplete type
      'enum CodecID'
    enum CodecID        codec_id;
                        ^

Reported in http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2014-March/017286.html

Change History (3)

Changed 10 years ago by ismangil

Patch to check ffmpeg version

comment:1 Changed 10 years ago by ismangil

Contributed patch from original reporter attached

Last edited 10 years ago by ismangil (previous) (diff)

comment:2 Changed 10 years ago by ismangil

  • Description modified (diff)
Note: See TracTickets for help on using tickets.