Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 7444:56a16bd12b79
use avcodec_alloc_context()
author | michael |
---|---|
date | Thu, 19 Sep 2002 09:47:37 +0000 |
parents | 2c35b856cf73 |
children | 0df2e3079aa4 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Thu Sep 19 08:15:59 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Sep 19 09:47:37 2002 +0000 @@ -131,9 +131,13 @@ if(lavc_codec->capabilities&CODEC_CAP_DR1) ctx->do_dr1=1; #endif - + +#if LIBAVCODEC_BUILD >= 4624 + ctx->avctx = avcodec_alloc_context(); +#else ctx->avctx = malloc(sizeof(AVCodecContext)); memset(ctx->avctx, 0, sizeof(AVCodecContext)); +#endif avctx = ctx->avctx; #if LIBAVCODEC_BUILD > 4615