]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/vocenc.c
Generate list of lavfi tests in configure
[ffmpeg] / libavformat / vocenc.c
index 744b2337a050374fee6c6c263db3c9a6248c304c..2d3472e31fc5626c9f0692a817ec42e434e8f4c8 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "voc.h"
+#include "internal.h"
 
 
 typedef struct voc_enc_context {
@@ -33,7 +34,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);