diff --git a/test/unitTest/media/test_media_filter.cpp b/test/unitTest/media/test_media_filter.cpp index e10c0c4c7c68778ef90062300085f8a4d79946fe..05e9b01eb244e75287b6b17707aab0e28dcde946 100644 --- a/test/unitTest/media/test_media_filter.cpp +++ b/test/unitTest/media/test_media_filter.cpp @@ -246,8 +246,8 @@ MediaFilterTest::testVideoFilter() // construct the filter parameters rational<int> one = rational<int>(1); - auto params1 = MediaStream("main", format, one, width1, height1, one, one); - auto params2 = MediaStream("top", format, one, width2, height2, one, one); + auto params1 = MediaStream("main", format, one, width1, height1, one.real<int>(), one); + auto params2 = MediaStream("top", format, one, width2, height2, one.real<int>(), one); // allocate and fill frame buffers CPPUNIT_ASSERT(av_frame_get_buffer(frame, 32) >= 0); @@ -286,8 +286,8 @@ MediaFilterTest::testFilterParams() // construct the filter parameters rational<int> one = rational<int>(1); - auto params1 = MediaStream("main", format, one, width1, height1, one, one); - auto params2 = MediaStream("top", format, one, width2, height2, one, one); + auto params1 = MediaStream("main", format, one, width1, height1, one.real<int>(), one); + auto params2 = MediaStream("top", format, one, width2, height2, one.real<int>(), one); // returned params should be invalid CPPUNIT_ASSERT(filter_->getOutputParams().format < 0);