Mercurial > libavformat.hg
diff 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 |
line wrap: on
line diff
--- a/output-example.c Tue Mar 30 15:50:57 2010 +0000 +++ b/output-example.c Tue Mar 30 23:30:55 2010 +0000 @@ -65,7 +65,7 @@ c = st->codec; c->codec_id = codec_id; - c->codec_type = CODEC_TYPE_AUDIO; + c->codec_type = AVMEDIA_TYPE_AUDIO; /* put sample parameters */ c->bit_rate = 64000; @@ -199,7 +199,7 @@ c = st->codec; c->codec_id = codec_id; - c->codec_type = CODEC_TYPE_VIDEO; + c->codec_type = AVMEDIA_TYPE_VIDEO; /* put sample parameters */ c->bit_rate = 400000;