comparison cdg.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 ea579ec43456
children
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
30 30
31 vst = av_new_stream(s, 0); 31 vst = av_new_stream(s, 0);
32 if (!vst) 32 if (!vst)
33 return AVERROR(ENOMEM); 33 return AVERROR(ENOMEM);
34 34
35 vst->codec->codec_type = CODEC_TYPE_VIDEO; 35 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
36 vst->codec->codec_id = CODEC_ID_CDGRAPHICS; 36 vst->codec->codec_id = CODEC_ID_CDGRAPHICS;
37 37
38 /// 75 sectors/sec * 4 packets/sector = 300 packets/sec 38 /// 75 sectors/sec * 4 packets/sector = 300 packets/sec
39 av_set_pts_info(vst, 32, 1, 300); 39 av_set_pts_info(vst, 32, 1, 300);
40 40