mirror of
https://github.com/opencv/opencv.git
synced 2026-09-19 15:23:23 -05:00
Fix test_exif compilation when non of JPEG, PNG, AVIF is enabled
When none of JPEG, PNG, AVIF is enabled, exif_files is a zero-length array, which is prohibited by C++ reference.
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
// It is subject to the license terms in the LICENSE file found in the top-level
|
// It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
// directory of this distribution and at http://opencv.org/license.html
|
// directory of this distribution and at http://opencv.org/license.html
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "test_precomp.hpp"
|
#include "test_precomp.hpp"
|
||||||
|
|
||||||
namespace opencv_test { namespace {
|
namespace opencv_test { namespace {
|
||||||
@@ -110,7 +113,7 @@ TEST_P(Exif, exif_orientation)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const string exif_files[] =
|
const std::vector<std::string> exif_files
|
||||||
{
|
{
|
||||||
#ifdef HAVE_JPEG
|
#ifdef HAVE_JPEG
|
||||||
"readwrite/testExifOrientation_1.jpg",
|
"readwrite/testExifOrientation_1.jpg",
|
||||||
|
|||||||
Reference in New Issue
Block a user