# HG changeset patch
# User Vittorio Giovara <vittorio.giovara@gmail.com>
# Date 1446652418 -3600
# Node ID 64ad779be7bf08fde1c7b21878b0e53833636e23
# Parent  9fcdf0969d536be9b5da5d516d509146d227ea77
Specify the enum type for Pixel and Sample formats

diff -r 9fcdf0969d53 -r 64ad779be7bf QTfrontend/util/LibavInteraction.cpp
--- a/QTfrontend/util/LibavInteraction.cpp	Wed Nov 04 16:53:33 2015 +0100
+++ b/QTfrontend/util/LibavInteraction.cpp	Wed Nov 04 16:53:38 2015 +0100
@@ -116,7 +116,7 @@
             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 @@
             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;