From 405227d531f638a646e93f30b04888cdb96991c7 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Mon, 11 Nov 2013 18:30:04 +0400 Subject: [PATCH] Replaced the image used in the Highgui_Video.ffmpeg_image test. Our prebuilt FFmpeg Windows binaries don't have PNG support enabled (because that requires zlib), so that makes a PNG image a bad choice for this test. When FFmpeg doesn't support PNG, VideoCapture falls back to the "image sequence" implementation, which doesn't work for single images. --- modules/highgui/test/test_ffmpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/test/test_ffmpeg.cpp b/modules/highgui/test/test_ffmpeg.cpp index 468fe77f7..30410eaab 100644 --- a/modules/highgui/test/test_ffmpeg.cpp +++ b/modules/highgui/test/test_ffmpeg.cpp @@ -154,7 +154,7 @@ public: { try { - string filename = ts->get_data_path() + "../cv/features2d/tsukuba.png"; + string filename = ts->get_data_path() + "readwrite/ordinary.bmp"; VideoCapture cap(filename); Mat img0 = imread(filename, 1); Mat img, img_next;