summaryrefslogtreecommitdiffstats
path: root/av_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'av_log.c')
-rw-r--r--av_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/av_log.c b/av_log.c
index bd42ce3bf1..bcf1a14e09 100644
--- a/av_log.c
+++ b/av_log.c
@@ -57,10 +57,10 @@ static int extract_msg_type_from_ctx(void *ptr)
if (!strcmp(avc->class_name, "AVCodecContext")) {
AVCodecContext *s = ptr;
if (s->codec) {
- if (s->codec->type == CODEC_TYPE_AUDIO) {
+ if (s->codec->type == AVMEDIA_TYPE_AUDIO) {
if (s->codec->decode)
return MSGT_DECAUDIO;
- } else if (s->codec->type == CODEC_TYPE_VIDEO) {
+ } else if (s->codec->type == AVMEDIA_TYPE_VIDEO) {
if (s->codec->decode)
return MSGT_DECVIDEO;
}