comparison filmstripdec.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 ba6b1ac2bab6
children 11bb10c37225
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
58 av_log_ask_for_sample(s, "unsupported packing method\n"); 58 av_log_ask_for_sample(s, "unsupported packing method\n");
59 return AVERROR_INVALIDDATA; 59 return AVERROR_INVALIDDATA;
60 } 60 }
61 61
62 url_fskip(pb, 2); 62 url_fskip(pb, 2);
63 st->codec->codec_type = CODEC_TYPE_VIDEO; 63 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
64 st->codec->codec_id = CODEC_ID_RAWVIDEO; 64 st->codec->codec_id = CODEC_ID_RAWVIDEO;
65 st->codec->pix_fmt = PIX_FMT_RGBA; 65 st->codec->pix_fmt = PIX_FMT_RGBA;
66 st->codec->codec_tag = 0; /* no fourcc */ 66 st->codec->codec_tag = 0; /* no fourcc */
67 st->codec->width = get_be16(pb); 67 st->codec->width = get_be16(pb);
68 st->codec->height = get_be16(pb); 68 st->codec->height = get_be16(pb);