[vlc-devel] [PATCH] Support for rotated MP4 Movies (bug #2882)

Matthias Keiser matthias at tristan-inc.com
Thu Feb 6 23:19:02 CET 2014


From 470b6de5f174acc4428a02a0805beec20657ecf0 Mon Sep 17 00:00:00 2001
From: Matthias Keiser <matthias at tristan-inc.com>
Date: Thu, 6 Feb 2014 16:08:49 +0100
Subject: [PATCH 06/13] vout_new_buffer: check video orientation.

---
 src/input/decoder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index d7caf2d..8f8a98a 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2017,7 +2017,8 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
         p_dec->fmt_out.video.i_y_offset != p_owner->video.i_y_offset  ||
         p_dec->fmt_out.i_codec != p_owner->video.i_chroma ||
         (int64_t)p_dec->fmt_out.video.i_sar_num * p_owner->video.i_sar_den !=
-        (int64_t)p_dec->fmt_out.video.i_sar_den * p_owner->video.i_sar_num )
+        (int64_t)p_dec->fmt_out.video.i_sar_den * p_owner->video.i_sar_num ||
+        p_dec->fmt_out.video.orientation != p_owner->video.orientation )
     {
         vout_thread_t *p_vout;
 
-- 
1.8.3.4 (Apple Git-47)





More information about the vlc-devel mailing list