]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/libgme.c
avfilter: add readvitc filter
[ffmpeg] / libavformat / libgme.c
index 276477b30889dd7b1401041c4467a30d8731e121..228273dc90f2b3f7d53da9ebd94e58f1ee9a1678 100644 (file)
@@ -126,10 +126,10 @@ static int read_header_gme(AVFormatContext *s)
     avpriv_set_pts_info(st, 64, 1, 1000);
     if (st->duration > 0)
         st->duration = gme->info->length;
-    st->codec->codec_type  = AVMEDIA_TYPE_AUDIO;
-    st->codec->codec_id    = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE);
-    st->codec->channels    = 2;
-    st->codec->sample_rate = gme->sample_rate;
+    st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
+    st->codecpar->codec_id    = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE);
+    st->codecpar->channels    = 2;
+    st->codecpar->sample_rate = gme->sample_rate;
 
     return 0;
 }