X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftty.c;h=ba7aebd17f3aee5a11c73528fcb62ce8160a4b8c;hb=6f69f7a8bf6a0d01;hp=9022e915fac03fa68a2a4fe77fe8be67acfe2560;hpb=8bbca8de394404772b1544ffd4c42e5731bf770f;p=ffmpeg diff --git a/libavformat/tty.c b/libavformat/tty.c index 9022e915fac..ba7aebd17f3 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;