]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iv8.c
mov: Wrap stsc index and count compare in a separate function
[ffmpeg] / libavformat / iv8.c
index ad630b3eb4d80f8f004b9d975014eb277dd0decb..1fa88c4eeb0a1a7f94579470a6c8dd030df4a87c 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);