Mercurial > libavformat.hg
comparison anm.c @ 5910:536e5527c1e0 libavformat
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | 7878a002f87d |
children | 11bb10c37225 |
comparison
equal
deleted
inserted
replaced
5909:b8041f85c327 | 5910:536e5527c1e0 |
---|---|
98 | 98 |
99 /* video stream */ | 99 /* video stream */ |
100 st = av_new_stream(s, 0); | 100 st = av_new_stream(s, 0); |
101 if (!st) | 101 if (!st) |
102 return AVERROR(ENOMEM); | 102 return AVERROR(ENOMEM); |
103 st->codec->codec_type = CODEC_TYPE_VIDEO; | 103 st->codec->codec_type = AVMEDIA_TYPE_VIDEO; |
104 st->codec->codec_id = CODEC_ID_ANM; | 104 st->codec->codec_id = CODEC_ID_ANM; |
105 st->codec->codec_tag = 0; /* no fourcc */ | 105 st->codec->codec_tag = 0; /* no fourcc */ |
106 st->codec->width = get_le16(pb); | 106 st->codec->width = get_le16(pb); |
107 st->codec->height = get_le16(pb); | 107 st->codec->height = get_le16(pb); |
108 if (get_byte(pb) != 0) | 108 if (get_byte(pb) != 0) |