Specify the enum type for Pixel and Sample formats 0.9.22
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 04 Nov 2015 16:20:46 +0100
branch0.9.22
changeset 11296 2f812d4513d1
parent 11295 210650fc7182
child 11297 bf5cfd830f7d
Specify the enum type for Pixel and Sample formats
QTfrontend/util/LibavInteraction.cpp
--- a/QTfrontend/util/LibavInteraction.cpp	Wed Nov 04 16:19:33 2015 +0100
+++ b/QTfrontend/util/LibavInteraction.cpp	Wed Nov 04 16:20:46 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;