Don't use obsolete CODEC_TYPE_AUDIO macro

This commit is contained in:
Jonathan Gonzalez V authored and Alexander Kojevnikov committed 2011-04-21 09:06:47 +08:00
1 parent 74dd6bfa94
commit 8afdb24977
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ SpekAudioContext * spek_audio_open (const gchar *file_name) {
}
cx->audio_stream = -1;
for (i = 0; i < cx->format_context->nb_streams; i++) {
if (cx->format_context->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) {
if (cx->format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
cx->audio_stream = i;
break;
}