From 274984e83bf1bd501ae9ce2111e3a0b86597ecfb Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 13 Mar 2015 10:30:43 +0000 Subject: [PATCH] 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. --- gst-libs/gst/video/video-frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-frame.c b/gst-libs/gst/video/video-frame.c index 353b416..19c1b0a 100644 --- a/gst-libs/gst/video/video-frame.c +++ b/gst-libs/gst/video/video-frame.c @@ -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); -- 2.7.4