av_log: stop accessing private ffmpeg fields

MPlayer legacy added in 3c49701490.
This commit is contained in:
wm4 2018-01-03 22:26:37 +01:00 committed by Kevin Mitchell
parent 877775f84e
commit ad1d845682
1 changed files with 2 additions and 2 deletions

View File

@ -93,10 +93,10 @@ static struct mp_log *get_av_log(void *ptr)
AVCodecContext *s = ptr;
if (s->codec) {
if (s->codec->type == AVMEDIA_TYPE_AUDIO) {
if (s->codec->decode)
if (av_codec_is_decoder(s->codec))
return log_decaudio;
} else if (s->codec->type == AVMEDIA_TYPE_VIDEO) {
if (s->codec->decode)
if (av_codec_is_decoder(s->codec))
return log_decvideo;
}
}