]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/srtdec.c
mov: Wrap stsc index and count compare in a separate function
[ffmpeg] / libavformat / srtdec.c
index 8d951f8f0a09f313fb4e367907ba03e595d85576..6f8206c75576da35d102d7565b80da704b613040 100644 (file)
@@ -46,8 +46,8 @@ static int srt_read_header(AVFormatContext *s)
     if (!st)
         return -1;
     avpriv_set_pts_info(st, 64, 1, 1000);
-    st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
-    st->codec->codec_id   = CODEC_ID_SRT;
+    st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
+    st->codecpar->codec_id   = AV_CODEC_ID_SRT;
     return 0;
 }