MMFMWK-7996 vpudec: limited sink caps for 845s
mscale 845s vpu only support H264/H265/VP8/VP9 input
Signed-off-by: Haihua Hu <jared.hu@nxp.com>
diff --git a/plugins/vpu/gstvpudecobject.c b/plugins/vpu/gstvpudecobject.c
index a462b7b..1484e9d 100755
--- a/plugins/vpu/gstvpudecobject.c
+++ b/plugins/vpu/gstvpudecobject.c
@@ -142,6 +142,11 @@
map++;
continue;
}
+ if (IS_IMX8MM() && (map->std != VPU_V_HEVC && map->std != VPU_V_VP9
+ && map->std != VPU_V_AVC && map->std != VPU_V_VP8)) {
+ map++;
+ continue;
+ }
if (caps) {
GstCaps *newcaps = gst_caps_from_string (map->mime);
if (newcaps) {