diff --git a/sys/mfc/gstmfcdec.c b/sys/mfc/gstmfcdec.c index 9822633c1f..799f322d0d 100644 --- a/sys/mfc/gstmfcdec.c +++ b/sys/mfc/gstmfcdec.c @@ -526,7 +526,8 @@ gst_mfc_dec_fill_outbuf (GstMFCDec * self, GstBuffer * outbuf, zerocopy = (gst_buffer_n_memory (outbuf) == 1 && (mem = gst_buffer_peek_memory (outbuf, 0)) && strcmp (mem->allocator->mem_type, "GstEGLImage") == 0); - has_cropping = self->has_cropping; + has_cropping = self->has_cropping && (self->width != self->crop_width + || self->height != self->crop_heigth); /* We only do cropping if we do zerocopy and downstream * supports cropping. For non-zerocopy we can do cropping