am7xxx-play: Replace deprecated FFmpeg API symbol PIX_FMT_NV12
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 1 Nov 2015 23:00:00 +0000 (00:00 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sat, 7 Nov 2015 21:26:37 +0000 (22:26 +0100)
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

index f63fbfd..0fa7c58 100644 (file)
@@ -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");
         */
        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;
                output_ctx->codec_ctx = output_codec_ctx;
                output_ctx->raw_output = 1;
                ret = 0;