]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/stldec.c
avformat/framehash: enable new output
[ffmpeg] / libavformat / stldec.c
index 8b1f0a6d5bbc9c1bdd3288c8f161ffdba0b0f227..35de49322c0c8ae2d2783d910d06f9d3f43592a6 100644 (file)
@@ -77,8 +77,8 @@ static int stl_read_header(AVFormatContext *s)
     if (!st)
         return AVERROR(ENOMEM);
     avpriv_set_pts_info(st, 64, 1, 100);
-    st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
-    st->codec->codec_id   = AV_CODEC_ID_STL;
+    st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
+    st->codecpar->codec_id   = AV_CODEC_ID_STL;
 
     while (!avio_feof(s->pb)) {
         char line[4096];