Mercurial > libavformat.hg
comparison iss.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 |
---|---|
90 iss->sample_start_pos = url_ftell(pb); | 90 iss->sample_start_pos = url_ftell(pb); |
91 | 91 |
92 st = av_new_stream(s, 0); | 92 st = av_new_stream(s, 0); |
93 if (!st) | 93 if (!st) |
94 return AVERROR(ENOMEM); | 94 return AVERROR(ENOMEM); |
95 st->codec->codec_type = CODEC_TYPE_AUDIO; | 95 st->codec->codec_type = AVMEDIA_TYPE_AUDIO; |
96 st->codec->codec_id = CODEC_ID_ADPCM_IMA_ISS; | 96 st->codec->codec_id = CODEC_ID_ADPCM_IMA_ISS; |
97 st->codec->channels = stereo ? 2 : 1; | 97 st->codec->channels = stereo ? 2 : 1; |
98 st->codec->sample_rate = 44100; | 98 st->codec->sample_rate = 44100; |
99 if(rate_divisor > 0) | 99 if(rate_divisor > 0) |
100 st->codec->sample_rate /= rate_divisor; | 100 st->codec->sample_rate /= rate_divisor; |