diff -up libdlna-0.2.3/src/profiles.c.ffmpeg libdlna-0.2.3/src/profiles.c --- libdlna-0.2.3/src/profiles.c.ffmpeg 2007-11-26 21:47:43.000000000 +0100 +++ libdlna-0.2.3/src/profiles.c 2011-08-28 21:44:20.000000000 +0200 @@ -205,13 +205,21 @@ av_profile_get_codecs (AVFormatContext * for (i = 0; i < ctx->nb_streams; i++) { if (audio_stream == -1 && +#if LIBAVCODEC_VERSION_MAJOR < 53 ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) +#else + ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) +#endif { audio_stream = i; continue; } else if (video_stream == -1 && +#if LIBAVCODEC_VERSION_MAJOR < 53 ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) +#else + ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) +#endif { video_stream = i; continue;