Skip to content
Snippets Groups Projects
Commit ad8a1f85 authored by Olivier Dion's avatar Olivier Dion :duck: Committed by Olivier Dion
Browse files

test_media_filter: Make it compile again

There's no implicit conversion from `rational` to `int` for the bitrate
parameters.

Gitlab: #545
Change-Id: Ic8fac9633c05f458992ee7e16cd39cdd16cfb365
parent 36c8db5d
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment