Don't use obsolete CODEC_TYPE_AUDIO macro

This commit is contained in:
Jonathan Gonzalez V 2011-04-21 09:06:47 +08:00 committed by Alexander Kojevnikov
parent 74dd6bfa94
commit 8afdb24977

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;
}