Opened 12 years ago

Last modified 12 years ago

#36830 closed defect

libdlna@0.2.3_3 build failure due to ffmpeg @1.0 update — at Initial Version

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

Description

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.

Change History (1)

Changed 12 years ago by todmorrison (Tod Morrison)

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

libdlna 0.2.3 + ffmpeg 1.0 patch

Note: See TracTickets for help on using tickets.