]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsespeex.c
xdcam hd422 720p24 fourcc in mov
[ffmpeg] / libavformat / oggparsespeex.c
index 05a998b228a313f3a4591f2e252ed7e179f8d30e..936b37e952e50478c331f6d1ccf67981b4cb957a 100644 (file)
@@ -52,7 +52,7 @@ static int speex_header(AVFormatContext *s, int idx) {
 
     if (spxp->seq == 0) {
         int frames_per_packet;
-        st->codec->codec_type = CODEC_TYPE_AUDIO;
+        st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
         st->codec->codec_id = CODEC_ID_SPEEX;
 
         st->codec->sample_rate = AV_RL32(p + 36);
@@ -75,7 +75,7 @@ static int speex_header(AVFormatContext *s, int idx) {
         st->time_base.num = 1;
         st->time_base.den = st->codec->sample_rate;
     } else
-        ff_vorbis_comment(s, p, os->psize);
+        ff_vorbis_comment(s, &st->metadata, p, os->psize);
 
     spxp->seq++;
     return 1;