From fdb8045c91881d75c68a08e65dc1e00f89bc0497 Mon Sep 17 00:00:00 2001 From: Andreas Cadhalpun Date: Mon, 2 Nov 2015 00:00:00 +0100 Subject: [PATCH 1/1] 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. --- examples/am7xxx-play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.1.4