From: Andreas Cadhalpun Date: Sun, 1 Nov 2015 23:00:00 +0000 (+0100) Subject: am7xxx-play: Replace deprecated FFmpeg API symbol PIX_FMT_NV12 X-Git-Tag: v0.1.6~9 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/fdb8045c91881d75c68a08e65dc1e00f89bc0497 am7xxx-play: Replace deprecated FFmpeg API symbol PIX_FMT_NV12 PIX_FMT_NV12 is not going to be available in ffmpeg 2.9 so prepare for that by using AV_PIX_FMT_NV12, which BTW has been available for quite some time already. --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index f63fbfd..0fa7c58 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -216,7 +216,7 @@ static int video_output_init(struct video_output_ctx *output_ctx, */ if (image_format == AM7XXX_IMAGE_FORMAT_NV12) { fprintf(stdout, "using raw output format\n"); - output_codec_ctx->pix_fmt = PIX_FMT_NV12; + output_codec_ctx->pix_fmt = AV_PIX_FMT_NV12; output_ctx->codec_ctx = output_codec_ctx; output_ctx->raw_output = 1; ret = 0;