summaryrefslogtreecommitdiff
path: root/libavformat/vocenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/vocenc.c')
-rw-r--r--libavformat/vocenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vocenc.c b/libavformat/vocenc.c
index 744b2337a0..f127c7e826 100644
--- a/libavformat/vocenc.c
+++ b/libavformat/vocenc.c
@@ -33,7 +33,7 @@ static int voc_write_header(AVFormatContext *s)
const int version = 0x0114;
if (s->nb_streams != 1
- || s->streams[0]->codec->codec_type != CODEC_TYPE_AUDIO)
+ || s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
return AVERROR_PATCHWELCOME;
put_buffer(pb, ff_voc_magic, sizeof(ff_voc_magic) - 1);