@@ -1011,10 +1011,6 @@ struct H264ToH265 : SetDevice
1011
1011
{
1012
1012
};
1013
1013
1014
- #if defined(WIN32) // remove when FFmpeg wrapper includes PR25874
1015
- #define WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE
1016
- #endif
1017
-
1018
1014
CUDA_TEST_P (H264ToH265, Transcode)
1019
1015
{
1020
1016
const std::string inputFile = std::string (cvtest::TS::ptr ()->get_data_path ()) + " ../highgui/video/big_buck_bunny.h264" ;
@@ -1054,10 +1050,8 @@ CUDA_TEST_P(H264ToH265, Transcode)
1054
1050
for (int i = 0 ; i < nFrames; ++i) {
1055
1051
cap >> frame;
1056
1052
ASSERT_FALSE (frame.empty ());
1057
- #if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE)
1058
1053
const int pts = static_cast <int >(cap.get (CAP_PROP_PTS));
1059
1054
ASSERT_EQ (i, pts > 0 ? pts : 0 ); // FFmpeg back end returns dts if pts is zero.
1060
- #endif
1061
1055
}
1062
1056
}
1063
1057
ASSERT_EQ (0 , remove (outputFile.c_str ()));
@@ -1201,10 +1195,8 @@ CUDA_TEST_P(Write, Writer)
1201
1195
for (int i = 0 ; i < nFrames; ++i) {
1202
1196
cap >> frame;
1203
1197
ASSERT_FALSE (frame.empty ());
1204
- #if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE)
1205
1198
const int pts = static_cast <int >(cap.get (CAP_PROP_PTS));
1206
1199
ASSERT_EQ (i, pts > 0 ? pts : 0 ); // FFmpeg back end returns dts if pts is zero.
1207
- #endif
1208
1200
}
1209
1201
}
1210
1202
ASSERT_EQ (0 , remove (outputFile.c_str ()));
@@ -1299,10 +1291,8 @@ CUDA_TEST_P(EncoderParams, Writer)
1299
1291
const bool keyFrameActual = capRaw.get (CAP_PROP_LRF_HAS_KEY_FRAME) == 1.0 ;
1300
1292
const bool keyFrameReference = i % idrPeriod == 0 ;
1301
1293
ASSERT_EQ (keyFrameActual, keyFrameReference);
1302
- #if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE)
1303
1294
const int pts = static_cast <int >(cap.get (CAP_PROP_PTS));
1304
1295
ASSERT_EQ (i, pts > 0 ? pts : 0 ); // FFmpeg back end returns dts if pts is zero.
1305
- #endif
1306
1296
}
1307
1297
}
1308
1298
}
0 commit comments