Opened 11 years ago

Closed 11 years ago

#36830 closed defect (fixed)

libdlna@0.2.3_3 build failure due to ffmpeg @1.0 update

Reported by: todmorrison (Tod Morrison) Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: libdlna

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After ffmpeg update, libdlna build fails. This can either be resolved by updating to libdlna 0.2.4 or by the attached patch.

The error is:

profiles.c:208:47: error: use of undeclared identifier 'CODEC_TYPE_AUDIO'
        ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
                                              ^
profiles.c:214:52: error: use of undeclared identifier 'CODEC_TYPE_VIDEO'
             ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
                                                   ^
profiles.c:283:7: warning: implicit declaration of function 'av_open_input_file' is invalid in C99 [-Wimplicit-function-declaration]
  if (av_open_input_file (&ctx, filename, NULL, 0, NULL) != 0)
      ^
profiles.c:290:7: warning: 'av_find_stream_info' is deprecated [-Wdeprecated-declarations]
  if (av_find_stream_info (ctx) < 0)
      ^
/opt/local/include/libavformat/avformat.h:1446:5: note: 'av_find_stream_info' declared here
int av_find_stream_info(AVFormatContext *ic);
    ^
profiles.c:337:3: warning: 'av_close_input_file' is deprecated [-Wdeprecated-declarations]
  av_close_input_file (ctx);
  ^
/opt/local/include/libavformat/avformat.h:1622:6: note: 'av_close_input_file' declared here
void av_close_input_file(AVFormatContext *s);
     ^
3 warnings and 2 errors generated.

Attachments (1)

patch-src-profiles.c.diff (1.2 KB) - added by todmorrison (Tod Morrison) 11 years ago.
libdlna 0.2.3 + ffmpeg 1.0 patch

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by todmorrison (Tod Morrison)

Attachment: patch-src-profiles.c.diff added

libdlna 0.2.3 + ffmpeg 1.0 patch

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: haspatch added
Owner: changed from macports-tickets@… to sfiera@…

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r99286 ... thanks.

Note: See TracTickets for help on using tickets.