Changeset View
Changeset View
Standalone View
Standalone View
autotests/ffmpegextractortest.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 35 | { | |||
---|---|---|---|---|---|
42 | QCOMPARE(result.types().constFirst(), Type::Video); | 42 | QCOMPARE(result.types().constFirst(), Type::Video); | ||
43 | 43 | | |||
44 | QCOMPARE(result.properties().value(Property::Title).toString(), QStringLiteral("Title")); | 44 | QCOMPARE(result.properties().value(Property::Title).toString(), QStringLiteral("Title")); | ||
45 | QCOMPARE(result.properties().value(Property::Copyright).toString(), QStringLiteral("Copyright")); | 45 | QCOMPARE(result.properties().value(Property::Copyright).toString(), QStringLiteral("Copyright")); | ||
46 | QCOMPARE(result.properties().value(Property::Author).toString(), QStringLiteral("Author")); | 46 | QCOMPARE(result.properties().value(Property::Author).toString(), QStringLiteral("Author")); | ||
47 | QCOMPARE(result.properties().value(Property::ReleaseYear).toInt(), 2019); | 47 | QCOMPARE(result.properties().value(Property::ReleaseYear).toInt(), 2019); | ||
48 | 48 | | |||
49 | QCOMPARE(result.properties().value(Property::Width).toInt(), 1280); | 49 | QCOMPARE(result.properties().value(Property::Width).toInt(), 1280); | ||
50 | QCOMPARE(result.properties().value(Property::Height).toInt(), 720); | 50 | QCOMPARE(result.properties().value(Property::Height).toInt(), 720); | ||
bruns: You can probably use `(24.0/1001)` for the exact value. | |||||
51 | QCOMPARE(result.properties().value(Property::FrameRate).toDouble(), 24.0/1.001); | ||||
51 | } | 52 | } | ||
52 | 53 | | |||
53 | QTEST_GUILESS_MAIN(ffmpegExtractorTest) | 54 | QTEST_GUILESS_MAIN(ffmpegExtractorTest) |
You can probably use (24.0/1001) for the exact value.