video: fix assertion comparison mishap

This commit is contained in:
Mark Nauwelaerts 2012-03-20 11:22:29 +01:00
parent 278b0f093b
commit d455b29db4

View file

@ -1158,7 +1158,7 @@ gst_video_frame_copy_plane (GstVideoFrame * dest, const GstVideoFrame * src,
g_return_val_if_fail (dinfo->finfo->format == sinfo->finfo->format, FALSE); g_return_val_if_fail (dinfo->finfo->format == sinfo->finfo->format, FALSE);
g_return_val_if_fail (dinfo->width == sinfo->width g_return_val_if_fail (dinfo->width == sinfo->width
&& dinfo->height == sinfo->height, FALSE); && dinfo->height == sinfo->height, FALSE);
g_return_val_if_fail (dinfo->finfo->n_planes < plane, FALSE); g_return_val_if_fail (dinfo->finfo->n_planes > plane, FALSE);
sp = src->data[plane]; sp = src->data[plane];
dp = dest->data[plane]; dp = dest->data[plane];