[vlc-devel] [PATCH] Preserve offsets set by source decoder
Stephan Krempel
stephan.krempel at gmx.de
Thu Oct 6 05:25:48 CEST 2011
* In function vout_new_buffer offsets that are set in
p_dec->p_owner->video before got lost.
* Fixes problem with matroska clipping feature (#4600)
---
src/input/decoder.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index efee194..72bdaa2 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2360,6 +2360,12 @@ static picture_t *vout_new_buffer( decoder_t
*p_dec ) }
}
+ if( !fmt.i_x_offset || !fmt.i_y_offset )
+ {
+ fmt.i_x_offset = p_dec->fmt_in.video.i_x_offset;
+ fmt.i_y_offset = p_dec->fmt_in.video.i_y_offset;
+ }
+
if( fmt.i_visible_height == 1088 &&
var_CreateGetBool( p_dec, "hdtv-fix" ) )
{
--
1.7.4.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111006/2ede8213/attachment.sig>
More information about the vlc-devel
mailing list