Mercurial > libavformat.hg
comparison output-example.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 | e892e44a0b6b |
children | 11bb10c37225 |
comparison
equal
deleted
inserted
replaced
5909:b8041f85c327 | 5910:536e5527c1e0 |
---|---|
63 exit(1); | 63 exit(1); |
64 } | 64 } |
65 | 65 |
66 c = st->codec; | 66 c = st->codec; |
67 c->codec_id = codec_id; | 67 c->codec_id = codec_id; |
68 c->codec_type = CODEC_TYPE_AUDIO; | 68 c->codec_type = AVMEDIA_TYPE_AUDIO; |
69 | 69 |
70 /* put sample parameters */ | 70 /* put sample parameters */ |
71 c->bit_rate = 64000; | 71 c->bit_rate = 64000; |
72 c->sample_rate = 44100; | 72 c->sample_rate = 44100; |
73 c->channels = 2; | 73 c->channels = 2; |
197 exit(1); | 197 exit(1); |
198 } | 198 } |
199 | 199 |
200 c = st->codec; | 200 c = st->codec; |
201 c->codec_id = codec_id; | 201 c->codec_id = codec_id; |
202 c->codec_type = CODEC_TYPE_VIDEO; | 202 c->codec_type = AVMEDIA_TYPE_VIDEO; |
203 | 203 |
204 /* put sample parameters */ | 204 /* put sample parameters */ |
205 c->bit_rate = 400000; | 205 c->bit_rate = 400000; |
206 /* resolution must be a multiple of two */ | 206 /* resolution must be a multiple of two */ |
207 c->width = 352; | 207 c->width = 352; |