mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
mfc: Only add crop metadata if required
This commit is contained in:
parent
83ea8f1256
commit
204ec7efd5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue