diff --git a/sys/d3d11/gstd3d11h264dec.cpp b/sys/d3d11/gstd3d11h264dec.cpp index ddda33e9a0..c089718388 100644 --- a/sys/d3d11/gstd3d11h264dec.cpp +++ b/sys/d3d11/gstd3d11h264dec.cpp @@ -1330,11 +1330,11 @@ gst_d3d11_h264_dec_register (GstPlugin * plugin, GstD3D11Device * device, /* To cover both landscape and portrait, select max value */ resolution = MAX (max_width, max_height); gst_caps_set_simple (sink_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); gst_caps_set_simple (src_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); type_info.class_data = gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps); diff --git a/sys/d3d11/gstd3d11h265dec.cpp b/sys/d3d11/gstd3d11h265dec.cpp index 0bdc58e6c8..bf2d5ec91e 100644 --- a/sys/d3d11/gstd3d11h265dec.cpp +++ b/sys/d3d11/gstd3d11h265dec.cpp @@ -1527,11 +1527,11 @@ gst_d3d11_h265_dec_register (GstPlugin * plugin, GstD3D11Device * device, /* To cover both landscape and portrait, select max value */ resolution = MAX (max_width, max_height); gst_caps_set_simple (sink_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); gst_caps_set_simple (src_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); /* Copy src caps to append other capsfeatures */ src_caps_copy = gst_caps_copy (src_caps); diff --git a/sys/d3d11/gstd3d11mpeg2dec.cpp b/sys/d3d11/gstd3d11mpeg2dec.cpp index 7ed4d6b1cd..87d9224a8e 100644 --- a/sys/d3d11/gstd3d11mpeg2dec.cpp +++ b/sys/d3d11/gstd3d11mpeg2dec.cpp @@ -1021,11 +1021,11 @@ gst_d3d11_mpeg2_dec_register (GstPlugin * plugin, GstD3D11Device * device, gst_caps_set_simple (src_caps, "format", G_TYPE_STRING, "NV12", NULL); gst_caps_set_simple (sink_caps, - "width", GST_TYPE_INT_RANGE, 64, 1920, - "height", GST_TYPE_INT_RANGE, 64, 1920, NULL); + "width", GST_TYPE_INT_RANGE, 1, 1920, + "height", GST_TYPE_INT_RANGE, 1, 1920, NULL); gst_caps_set_simple (src_caps, - "width", GST_TYPE_INT_RANGE, 64, 1920, - "height", GST_TYPE_INT_RANGE, 64, 1920, NULL); + "width", GST_TYPE_INT_RANGE, 1, 1920, + "height", GST_TYPE_INT_RANGE, 1, 1920, NULL); type_info.class_data = gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps); diff --git a/sys/d3d11/gstd3d11vp8dec.cpp b/sys/d3d11/gstd3d11vp8dec.cpp index d70080fb9c..126d1eaf8c 100644 --- a/sys/d3d11/gstd3d11vp8dec.cpp +++ b/sys/d3d11/gstd3d11vp8dec.cpp @@ -917,11 +917,11 @@ gst_d3d11_vp8_dec_register (GstPlugin * plugin, GstD3D11Device * device, /* To cover both landscape and portrait, select max value */ resolution = MAX (max_width, max_height); gst_caps_set_simple (sink_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); gst_caps_set_simple (src_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); type_info.class_data = gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps); diff --git a/sys/d3d11/gstd3d11vp9dec.cpp b/sys/d3d11/gstd3d11vp9dec.cpp index 5cce338a99..72c8234691 100644 --- a/sys/d3d11/gstd3d11vp9dec.cpp +++ b/sys/d3d11/gstd3d11vp9dec.cpp @@ -1220,11 +1220,11 @@ gst_d3d11_vp9_dec_register (GstPlugin * plugin, GstD3D11Device * device, /* To cover both landscape and portrait, select max value */ resolution = MAX (max_width, max_height); gst_caps_set_simple (sink_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); gst_caps_set_simple (src_caps, - "width", GST_TYPE_INT_RANGE, 64, resolution, - "height", GST_TYPE_INT_RANGE, 64, resolution, NULL); + "width", GST_TYPE_INT_RANGE, 1, resolution, + "height", GST_TYPE_INT_RANGE, 1, resolution, NULL); type_info.class_data = gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps);