mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
video-frame: Relax width/height assertion
When doing CROP META it is exepcted that the width and/or height in the GstVideoMeta is bigger or equal to the caps negotiated size.
This commit is contained in:
parent
c5824f1b43
commit
274984e83b
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info,
|
|||
if (meta) {
|
||||
/* All these values must be consistent */
|
||||
g_return_val_if_fail (info->finfo->format == meta->format, FALSE);
|
||||
g_return_val_if_fail (info->width == meta->width, FALSE);
|
||||
g_return_val_if_fail (info->height == meta->height, FALSE);
|
||||
g_return_val_if_fail (info->width >= meta->width, FALSE);
|
||||
g_return_val_if_fail (info->height >= meta->height, FALSE);
|
||||
g_return_val_if_fail (info->finfo->n_planes == meta->n_planes, FALSE);
|
||||
|
||||
frame->info.finfo = gst_video_format_get_info (meta->format);
|
||||
|
|
Loading…
Reference in a new issue