Mercurial > libavformat.hg
diff asfdec.c @ 6484:29e95ae56fa9 libavformat
Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the
corresponding AVMEDIA_TYPE_* symbols.
| author | stefano |
|---|---|
| date | Sat, 25 Sep 2010 23:27:16 +0000 |
| parents | c59fad269e39 |
| children |
line wrap: on
line diff
--- a/asfdec.c Fri Sep 24 18:04:21 2010 +0000 +++ b/asfdec.c Sat Sep 25 23:27:16 2010 +0000 @@ -639,7 +639,7 @@ av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den, dar[i].num, dar[i].den, INT_MAX); - } else if ((dar[0].num > 0) && (dar[0].den > 0) && (st->codec->codec_type==CODEC_TYPE_VIDEO)) // Use ASF container value if the stream doesn't AR set. + } else if ((dar[0].num > 0) && (dar[0].den > 0) && (st->codec->codec_type==AVMEDIA_TYPE_VIDEO)) // Use ASF container value if the stream doesn't AR set. av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den, dar[0].num, dar[0].den, INT_MAX);
