Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created August 23, 2011 18:29
Show Gist options
  • Save oyvindio/1166073 to your computer and use it in GitHub Desktop.
Save oyvindio/1166073 to your computer and use it in GitHub Desktop.
--- profiles.c.orig 2011-08-23 20:26:34.000000000 +0200
+++ profiles.c 2011-08-23 20:27:40.000000000 +0200
@@ -205,13 +205,13 @@
for (i = 0; i < ctx->nb_streams; i++)
{
if (audio_stream == -1 &&
- ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
+ 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)
+ 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