Mercurial > libavformat.hg
comparison mp3.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 | 74142991b333 |
children | 13a03c6663b3 |
comparison
equal
deleted
inserted
replaced
5909:b8041f85c327 | 5910:536e5527c1e0 |
---|---|
138 | 138 |
139 st = av_new_stream(s, 0); | 139 st = av_new_stream(s, 0); |
140 if (!st) | 140 if (!st) |
141 return AVERROR(ENOMEM); | 141 return AVERROR(ENOMEM); |
142 | 142 |
143 st->codec->codec_type = CODEC_TYPE_AUDIO; | 143 st->codec->codec_type = AVMEDIA_TYPE_AUDIO; |
144 st->codec->codec_id = CODEC_ID_MP3; | 144 st->codec->codec_id = CODEC_ID_MP3; |
145 st->need_parsing = AVSTREAM_PARSE_FULL; | 145 st->need_parsing = AVSTREAM_PARSE_FULL; |
146 st->start_time = 0; | 146 st->start_time = 0; |
147 | 147 |
148 // lcm of all mp3 sample rates | 148 // lcm of all mp3 sample rates |