Mercurial > libavformat.hg
comparison tty.c @ 6484:29e95ae56fa9 libavformat
Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the
corresponding AVMEDIA_TYPE_* symbols.
author | stefano |
---|---|
date | Sat, 25 Sep 2010 23:27:16 +0000 |
parents | c4ff37db69e1 |
children |
comparison
equal
deleted
inserted
replaced
6483:ac299df18642 | 6484:29e95ae56fa9 |
---|---|
73 TtyDemuxContext *s = avctx->priv_data; | 73 TtyDemuxContext *s = avctx->priv_data; |
74 AVStream *st = av_new_stream(avctx, 0); | 74 AVStream *st = av_new_stream(avctx, 0); |
75 if (!st) | 75 if (!st) |
76 return AVERROR(ENOMEM); | 76 return AVERROR(ENOMEM); |
77 st->codec->codec_tag = 0; | 77 st->codec->codec_tag = 0; |
78 st->codec->codec_type = CODEC_TYPE_VIDEO; | 78 st->codec->codec_type = AVMEDIA_TYPE_VIDEO; |
79 st->codec->codec_id = CODEC_ID_ANSI; | 79 st->codec->codec_id = CODEC_ID_ANSI; |
80 if (ap->width) st->codec->width = ap->width; | 80 if (ap->width) st->codec->width = ap->width; |
81 if (ap->height) st->codec->height = ap->height; | 81 if (ap->height) st->codec->height = ap->height; |
82 | 82 |
83 if (!ap->time_base.num) { | 83 if (!ap->time_base.num) { |