From c92dd5c03009e4b1dfb19d002f9f1e0cdb4ee050 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 4 Nov 2015 16:53:38 +0100 Subject: [PATCH] [PATCH] Specify the enum type for Pixel and Sample formats Gbp-Pq: Name 62e5519664f25ccdbdeb51e3e08c9017c95b25c1.patch --- QTfrontend/util/LibavInteraction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QTfrontend/util/LibavInteraction.cpp b/QTfrontend/util/LibavInteraction.cpp index ab76292..d5fbe37 100644 --- a/QTfrontend/util/LibavInteraction.cpp +++ b/QTfrontend/util/LibavInteraction.cpp @@ -116,7 +116,7 @@ LibavInteraction::LibavInteraction() : QObject() if (!pCodec->pix_fmts) continue; bool yuv420Supported = false; - for (const AVPixelFormat* pfmt = pCodec->pix_fmts; *pfmt != -1; pfmt++) + for (const enum AVPixelFormat* pfmt = pCodec->pix_fmts; *pfmt != -1; pfmt++) if (*pfmt == AV_PIX_FMT_YUV420P) { yuv420Supported = true; @@ -131,7 +131,7 @@ LibavInteraction::LibavInteraction() : QObject() if (!pCodec->sample_fmts) continue; bool s16Supported = false; - for (const AVSampleFormat* pfmt = pCodec->sample_fmts; *pfmt != -1; pfmt++) + for (const enum AVSampleFormat* pfmt = pCodec->sample_fmts; *pfmt != -1; pfmt++) if (*pfmt == AV_SAMPLE_FMT_S16) { s16Supported = true; -- 2.30.2