]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iv8.c
avformat/framehash: enable new output
[ffmpeg] / libavformat / iv8.c
index f1e351cbb6b55a54a342d59b5579a72d8a133418..077d905b4bfd5d2f378d4d350e3439a6ea6623bc 100644 (file)
@@ -45,8 +45,8 @@ static int read_header(AVFormatContext *s)
     if (!st)
         return AVERROR(ENOMEM);
 
-    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
-    st->codec->codec_id = AV_CODEC_ID_MPEG4;
+    st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+    st->codecpar->codec_id = AV_CODEC_ID_MPEG4;
     st->need_parsing = AVSTREAM_PARSE_FULL;
     avpriv_set_pts_info(st, 64, 1, 90000);