aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_riff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_riff.c')
-rw-r--r--src/plugins/test_riff.c64
1 files changed, 31 insertions, 33 deletions
diff --git a/src/plugins/test_riff.c b/src/plugins/test_riff.c
index 2838a08..6993b2c 100644
--- a/src/plugins/test_riff.c
+++ b/src/plugins/test_riff.c
@@ -26,7 +26,6 @@
26#include "test_lib.h" 26#include "test_lib.h"
27 27
28 28
29
30/** 29/**
31 * Main function for the RIFF testcase. 30 * Main function for the RIFF testcase.
32 * 31 *
@@ -37,41 +36,40 @@
37int 36int
38main (int argc, char *argv[]) 37main (int argc, char *argv[])
39{ 38{
40 struct SolutionData riff_flame_sol[] = 39 struct SolutionData riff_flame_sol[] = {
40 {
41 EXTRACTOR_METATYPE_MIMETYPE,
42 EXTRACTOR_METAFORMAT_UTF8,
43 "text/plain",
44 "video/x-msvideo",
45 strlen ("video/x-msvideo") + 1,
46 0
47 },
41 { 48 {
42 { 49 EXTRACTOR_METATYPE_FORMAT,
43 EXTRACTOR_METATYPE_MIMETYPE, 50 EXTRACTOR_METAFORMAT_UTF8,
44 EXTRACTOR_METAFORMAT_UTF8, 51 "text/plain",
45 "text/plain", 52 "codec: cvid, 35 fps, 3143 ms",
46 "video/x-msvideo", 53 strlen ("codec: cvid, 35 fps, 3143 ms") + 1,
47 strlen ("video/x-msvideo") + 1, 54 0
48 0 55 },
49 },
50 {
51 EXTRACTOR_METATYPE_FORMAT,
52 EXTRACTOR_METAFORMAT_UTF8,
53 "text/plain",
54 "codec: cvid, 35 fps, 3143 ms",
55 strlen ("codec: cvid, 35 fps, 3143 ms") + 1,
56 0
57 },
58 {
59 EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
60 EXTRACTOR_METAFORMAT_UTF8,
61 "text/plain",
62 "256x240",
63 strlen ("256x240") + 1,
64 0
65 },
66 { 0, 0, NULL, NULL, 0, -1 }
67 };
68 struct ProblemSet ps[] =
69 { 56 {
70 { "testdata/riff_flame.avi", 57 EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
71 riff_flame_sol }, 58 EXTRACTOR_METAFORMAT_UTF8,
72 { NULL, NULL } 59 "text/plain",
73 }; 60 "256x240",
61 strlen ("256x240") + 1,
62 0
63 },
64 { 0, 0, NULL, NULL, 0, -1 }
65 };
66 struct ProblemSet ps[] = {
67 { "testdata/riff_flame.avi",
68 riff_flame_sol },
69 { NULL, NULL }
70 };
74 return ET_main ("riff", ps); 71 return ET_main ("riff", ps);
75} 72}
76 73
74
77/* end of test_riff.c */ 75/* end of test_riff.c */