[vlc-commits] video_format_IsSimilar: check orientation

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:17:34 2014 +0100| [7087f3bfb105f6ca2d3ed54b6449cc1174625294] | committer: Rémi Denis-Courmont

video_format_IsSimilar: check orientation

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

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

 src/misc/es_format.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index 87b6ada..8e9078d 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -259,6 +259,9 @@ bool video_format_IsSimilar( const video_format_t *p_fmt1, const video_format_t
     if( v1.i_sar_num * v2.i_sar_den != v2.i_sar_num * v1.i_sar_den )
         return false;
 
+    if( v1.orientation != v2.orientation)
+        return false;
+
     if( v1.i_chroma == VLC_CODEC_RGB15 ||
         v1.i_chroma == VLC_CODEC_RGB16 ||
         v1.i_chroma == VLC_CODEC_RGB24 ||



More information about the vlc-commits mailing list