[PATCH] libdlna: port to FFmpeg-0.8 API

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Sun Sep 4 00:05:46 CEST 2011


Attached.

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
-------------- next part --------------
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;


More information about the rpmfusion-developers mailing list