mirror of https://github.com/mpv-player/mpv
av_log: stop accessing private ffmpeg fields
MPlayer legacy added in 3c49701490
.
This commit is contained in:
parent
877775f84e
commit
ad1d845682
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue