]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wv.c
vorbiscomment: convert metadata before computing the header's length
[ffmpeg] / libavformat / wv.c
index 6290a9941258b5e49da92867fac1916ca43fcd6f..03b864bdaf4ab086a4ffda92a01d1026046e429d 100644 (file)
@@ -162,7 +162,7 @@ static int wv_read_header(AVFormatContext *s,
     st = av_new_stream(s, 0);
     if (!st)
         return -1;
-    st->codec->codec_type = CODEC_TYPE_AUDIO;
+    st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->codec_id = CODEC_ID_WAVPACK;
     st->codec->channels = wc->chan;
     st->codec->sample_rate = wc->rate;