Mercurial > libavformat.hg
diff oggparsedirac.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 | 14f90d20ef05 |
children | 11bb10c37225 |
line wrap: on
line diff
--- a/oggparsedirac.c Tue Mar 30 15:50:57 2010 +0000 +++ b/oggparsedirac.c Tue Mar 30 23:30:55 2010 +0000 @@ -39,7 +39,7 @@ if (ff_dirac_parse_sequence_header(st->codec, &gb, &source) < 0) return -1; - st->codec->codec_type = CODEC_TYPE_VIDEO; + st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_DIRAC; // dirac in ogg always stores timestamps as though the video were interlaced st->time_base = (AVRational){st->codec->time_base.num, 2*st->codec->time_base.den}; @@ -77,7 +77,7 @@ if (buf[0] != 'K') return 0; - st->codec->codec_type = CODEC_TYPE_VIDEO; + st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_DIRAC; st->time_base.den = AV_RB32(buf+8); st->time_base.num = AV_RB32(buf+12);