mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
v4l2decoder: Relax width/height return value check
The driver adjust the width/height to coded size. This was not an issue for H264, as the coded size is in the bitstream, but is an issue with VP8. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1216>
This commit is contained in:
parent
72c0b3e5ae
commit
de2cccaa47
1 changed files with 1 additions and 2 deletions
|
@ -255,8 +255,7 @@ gst_v4l2_decoder_set_sink_fmt (GstV4l2Decoder * self, guint32 pix_fmt,
|
|||
}
|
||||
|
||||
if (format.fmt.pix_mp.pixelformat != pix_fmt
|
||||
|| format.fmt.pix_mp.width != width
|
||||
|| format.fmt.pix_mp.height != height) {
|
||||
|| format.fmt.pix_mp.width < width || format.fmt.pix_mp.height < height) {
|
||||
GST_WARNING_OBJECT (self, "Failed to set sink format to %"
|
||||
GST_FOURCC_FORMAT " %ix%i", GST_FOURCC_ARGS (pix_fmt), width, height);
|
||||
errno = EINVAL;
|
||||
|
|
Loading…
Reference in a new issue