[vlc-devel] [PATCH] Preserve offsets set by source decoder

Stephan Krempel stephan.krempel at gmx.de
Tue Oct 11 17:27:04 CEST 2011


Before it's forgotten, would someone please include the reworked
patch if there is nothing speeking against it?

Here it is again (don't understand why mailman assumes text/x-patch
attachments to be binary):

----

From ba06704f8631cfb8cbdadb400c445212577b705f Mon Sep 17 00:00:00 2001
From: Stephan Krempel <stephan.krempel at gmx.de>
Date: Thu, 6 Oct 2011 17:57:24 +0200
Subject: [PATCH] Preserve offsets set by demuxer

* In function vout_new_buffer offsets that are set in
  p_dec->p_owner->video could get lost before.

* Fixes problem with matroska clipping feature (#4600)
---
 src/input/decoder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index efee194..4607531 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2352,6 +2352,8 @@ static picture_t *vout_new_buffer( decoder_t
*p_dec ) {
                 fmt.i_visible_width  =
p_dec->fmt_in.video.i_visible_width; fmt.i_visible_height =
p_dec->fmt_in.video.i_visible_height;
+                fmt.i_x_offset  = p_dec->fmt_in.video.i_x_offset;
+                fmt.i_y_offset = p_dec->fmt_in.video.i_y_offset;
             }
             else
             {
-- 
1.7.4.1



More information about the vlc-devel mailing list