comparison txd.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 cda7add41fbb
children
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
41 AVStream *st; 41 AVStream *st;
42 42
43 st = av_new_stream(s, 0); 43 st = av_new_stream(s, 0);
44 if (!st) 44 if (!st)
45 return AVERROR(ENOMEM); 45 return AVERROR(ENOMEM);
46 st->codec->codec_type = CODEC_TYPE_VIDEO; 46 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
47 st->codec->codec_id = CODEC_ID_TXD; 47 st->codec->codec_id = CODEC_ID_TXD;
48 st->codec->time_base.den = 5; 48 st->codec->time_base.den = 5;
49 st->codec->time_base.num = 1; 49 st->codec->time_base.num = 1;
50 /* the parameters will be extracted from the compressed bitstream */ 50 /* the parameters will be extracted from the compressed bitstream */
51 return 0; 51 return 0;