comparison flic.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 49c1d3b27727
children 178de7695c6c
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
101 /* initialize the decoder streams */ 101 /* initialize the decoder streams */
102 st = av_new_stream(s, 0); 102 st = av_new_stream(s, 0);
103 if (!st) 103 if (!st)
104 return AVERROR(ENOMEM); 104 return AVERROR(ENOMEM);
105 flic->video_stream_index = st->index; 105 flic->video_stream_index = st->index;
106 st->codec->codec_type = CODEC_TYPE_VIDEO; 106 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
107 st->codec->codec_id = CODEC_ID_FLIC; 107 st->codec->codec_id = CODEC_ID_FLIC;
108 st->codec->codec_tag = 0; /* no fourcc */ 108 st->codec->codec_tag = 0; /* no fourcc */
109 st->codec->width = AV_RL16(&header[0x08]); 109 st->codec->width = AV_RL16(&header[0x08]);
110 st->codec->height = AV_RL16(&header[0x0A]); 110 st->codec->height = AV_RL16(&header[0x0A]);
111 111