Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gst-plugins-base
> 0036-ffmpegcolorspace-ensure-we-don-t-lose-any-crop-setti.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0036-ffmpegcolorspace-ensure-we-don-t-lose-any-crop-setti.patch of Package gst-plugins-base
From e722241fe664a326c8fe2a50b848c37ac44cdaa7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Fri, 29 Jun 2012 16:31:29 +0000 Subject: [PATCH] ffmpegcolorspace: ensure we don't lose any crop setting --- gst/ffmpegcolorspace/gstffmpegcolorspace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/ffmpegcolorspace/gstffmpegcolorspace.c b/gst/ffmpegcolorspace/gstffmpegcolorspace.c index 96e62f8..0521632 100644 --- a/gst/ffmpegcolorspace/gstffmpegcolorspace.c +++ b/gst/ffmpegcolorspace/gstffmpegcolorspace.c @@ -475,6 +475,9 @@ gst_ffmpegcsp_transform (GstBaseTransform * btrans, GstBuffer * inbuf, space->to_pixfmt == PIX_FMT_NB)) goto unknown_format; + /* Ensure any crop setting is preserved */ + gst_buffer_copy_metadata (outbuf, inbuf, GST_BUFFER_COPY_QDATA); + /* fill from with source data */ gst_ffmpegcsp_avpicture_fill (&space->from_frame, GST_BUFFER_DATA (inbuf), space->from_pixfmt, space->width, space->height, -- 1.7.9.5