]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ncdec.c
avformat/framehash: enable new output
[ffmpeg] / libavformat / ncdec.c
index 745ba61eb23d55d58965c16cc7e90584ccf0f304..8cadcc7cd7508f2e984063b21dd687ab349e45b6 100644 (file)
@@ -51,8 +51,8 @@ static int nc_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, 100);