[vlc-commits] decoder: check video orientation in vout_new_buffer()

Matthias Keiser git at videolan.org
Fri Feb 7 20:12:42 CET 2014


vlc | branch: master | Matthias Keiser <matthias at tristan-inc.com> | Thu Feb  6 16:08:49 2014 +0100| [447ecbf67c0e659c1978b89189c785c41de5eb59] | committer: Rémi Denis-Courmont

decoder: check video orientation in vout_new_buffer()

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=447ecbf67c0e659c1978b89189c785c41de5eb59
---

 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 995851f..3028b43 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2032,7 +2032,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;
 



More information about the vlc-commits mailing list