summaryrefslogtreecommitdiff
path: root/libavformat/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r--libavformat/tty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c
index 9022e915fa..ba7aebd17f 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -82,12 +82,12 @@ static int read_header(AVFormatContext *avctx)
ret = AVERROR(ENOMEM);
goto fail;
}
- st->codec->codec_tag = 0;
- st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
- st->codec->codec_id = AV_CODEC_ID_ANSI;
+ st->codecpar->codec_tag = 0;
+ st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+ st->codecpar->codec_id = AV_CODEC_ID_ANSI;
- st->codec->width = s->width;
- st->codec->height = s->height;
+ st->codecpar->width = s->width;
+ st->codecpar->height = s->height;
avpriv_set_pts_info(st, 60, s->framerate.den, s->framerate.num);
st->avg_frame_rate = s->framerate;