Mercurial > libavformat.hg
comparison tta.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 | 4201c086a746 |
children | 81614e9b541b |
comparison
equal
deleted
inserted
replaced
5909:b8041f85c327 | 5910:536e5527c1e0 |
---|---|
99 av_add_index_entry(st, framepos, i*framelen, size, 0, AVINDEX_KEYFRAME); | 99 av_add_index_entry(st, framepos, i*framelen, size, 0, AVINDEX_KEYFRAME); |
100 framepos += size; | 100 framepos += size; |
101 } | 101 } |
102 url_fskip(s->pb, 4); // seektable crc | 102 url_fskip(s->pb, 4); // seektable crc |
103 | 103 |
104 st->codec->codec_type = CODEC_TYPE_AUDIO; | 104 st->codec->codec_type = AVMEDIA_TYPE_AUDIO; |
105 st->codec->codec_id = CODEC_ID_TTA; | 105 st->codec->codec_id = CODEC_ID_TTA; |
106 st->codec->channels = channels; | 106 st->codec->channels = channels; |
107 st->codec->sample_rate = samplerate; | 107 st->codec->sample_rate = samplerate; |
108 st->codec->bits_per_coded_sample = bps; | 108 st->codec->bits_per_coded_sample = bps; |
109 | 109 |