Created
December 5, 2011 16:19
-
-
Save rogeriopvl/1434147 to your computer and use it in GitHub Desktop.
Patch for libdlna 0.2.3 with ffmpeg 0.8.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/profiles.c b/src/profiles.c | |
index 4f16ae7..9410b5e 100644 | |
--- a/src/profiles.c | |
+++ b/src/profiles.c | |
@@ -204,14 +204,24 @@ av_profile_get_codecs (AVFormatContext *ctx) | |
for (i = 0; i < ctx->nb_streams; i++) | |
{ | |
+#if LIBAVFORMAT_BUILD < 4621 | |
if (audio_stream == -1 && | |
ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) | |
+#else | |
+ if (audio_stream == -1 && | |
+ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) | |
+#endif | |
{ | |
audio_stream = i; | |
continue; | |
} | |
+#if LIBAVFORMAT_BUILD < 4621 | |
else if (video_stream == -1 && | |
ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) | |
+#else | |
+ else if (video_stream == -1 && | |
+ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) | |
+#endif | |
{ | |
video_stream = i; | |
continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment