libav 0.7: Replace CODEC_TYPE_* with AVMEDIA_TYPE_*

This commit is contained in:
Julien BLACHE
2011-06-02 17:06:20 +02:00
parent d8685846d0
commit b203f1ea1f
3 changed files with 20 additions and 0 deletions

View File

@@ -365,7 +365,11 @@ transcode_setup(struct media_file_info *mfi, off_t *est_size, int wavhdr)
ctx->astream = -1;
for (i = 0; i < ctx->fmtctx->nb_streams; i++)
{
#if LIBAVCODEC_VERSION_MAJOR >= 53 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 64)
if (ctx->fmtctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
#else
if (ctx->fmtctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
#endif
{
ctx->astream = i;