Skip to content

Instantly share code, notes, and snippets.

@JackDanger
Created January 8, 2012 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JackDanger/1576595 to your computer and use it in GitHub Desktop.
Save JackDanger/1576595 to your computer and use it in GitHub Desktop.
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,14 @@ av_profile_get_codecs (AVFormatContext *ctx)
for (i = 0; i < ctx->nb_streams; i++)
{
- if (audio_stream == -1 &&
- ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
+ if (audio_stream == -1 &&
+ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
{
audio_stream = i;
continue;
}
- else if (video_stream == -1 &&
- ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
+ else if (video_stream == -1 &&
+ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
{
video_stream = i;
continue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment