summaryrefslogtreecommitdiffstats
path: root/libavformat/subviewer1dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/subviewer1dec.c')
-rw-r--r--libavformat/subviewer1dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/subviewer1dec.c b/libavformat/subviewer1dec.c
index 93db4eb..e579d1c 100644
--- a/libavformat/subviewer1dec.c
+++ b/libavformat/subviewer1dec.c
@@ -50,8 +50,8 @@ static int subviewer1_read_header(AVFormatContext *s)
if (!st)
return AVERROR(ENOMEM);
avpriv_set_pts_info(st, 64, 1, 1);
- st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
- st->codec->codec_id = AV_CODEC_ID_SUBVIEWER1;
+ st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
+ st->codecpar->codec_id = AV_CODEC_ID_SUBVIEWER1;
while (!avio_feof(s->pb)) {
char line[4096];
OpenPOWER on IntegriCloud