summaryrefslogtreecommitdiff
path: root/tests/test-decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-decode.c')
-rw-r--r--tests/test-decode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-decode.c b/tests/test-decode.c
index a425f822..458416e6 100644
--- a/tests/test-decode.c
+++ b/tests/test-decode.c
@@ -27,9 +27,11 @@
#include <gst/vaapi/gstvaapidecoder_h264.h>
#include <gst/vaapi/gstvaapidecoder_jpeg.h>
#include <gst/vaapi/gstvaapidecoder_mpeg2.h>
+#include <gst/vaapi/gstvaapidecoder_mpeg4.h>
#include <gst/vaapi/gstvaapidecoder_vc1.h>
#include "test-jpeg.h"
#include "test-mpeg2.h"
+#include "test-mpeg4.h"
#include "test-h264.h"
#include "test-vc1.h"
#include "output.h"
@@ -49,6 +51,7 @@ static const CodecDefs g_codec_defs[] = {
#define INIT_FUNCS(CODEC) { #CODEC, CODEC##_get_video_info }
INIT_FUNCS(jpeg),
INIT_FUNCS(mpeg2),
+ INIT_FUNCS(mpeg4),
INIT_FUNCS(h264),
INIT_FUNCS(vc1),
#undef INIT_FUNCS
@@ -150,6 +153,9 @@ main(int argc, char *argv[])
case GST_VAAPI_CODEC_MPEG2:
decoder = gst_vaapi_decoder_mpeg2_new(display, decoder_caps);
break;
+ case GST_VAAPI_CODEC_MPEG4:
+ decoder = gst_vaapi_decoder_mpeg4_new(display, decoder_caps);
+ break;
case GST_VAAPI_CODEC_VC1:
decoder = gst_vaapi_decoder_vc1_new(display, decoder_caps);
break;