comparison apc.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 1d3d17de20ba
children
comparison
equal deleted inserted replaced
5909:b8041f85c327 5910:536e5527c1e0
41 41
42 st = av_new_stream(s, 0); 42 st = av_new_stream(s, 0);
43 if (!st) 43 if (!st)
44 return AVERROR(ENOMEM); 44 return AVERROR(ENOMEM);
45 45
46 st->codec->codec_type = CODEC_TYPE_AUDIO; 46 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
47 st->codec->codec_id = CODEC_ID_ADPCM_IMA_WS; 47 st->codec->codec_id = CODEC_ID_ADPCM_IMA_WS;
48 48
49 get_le32(pb); /* number of samples */ 49 get_le32(pb); /* number of samples */
50 st->codec->sample_rate = get_le32(pb); 50 st->codec->sample_rate = get_le32(pb);
51 51