[vlc-commits] commit: Fixed video_format_IsSimilar regarding sar. (Laurent Aimar )

git at videolan.org git at videolan.org
Mon May 10 19:55:12 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu May  6 23:43:28 2010 +0200| [0ada7d44140f06f242958a26f975de7141c40c52] | committer: Laurent Aimar 

Fixed video_format_IsSimilar regarding sar.

It also fixes es_format_IsSimilar.

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

 src/misc/es_format.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index cad689a..3c37f4f 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -219,6 +219,8 @@ bool video_format_IsSimilar( const video_format_t *p_fmt1, const video_format_t
         v1.i_visible_height != v2.i_visible_height ||
         v1.i_x_offset != v2.i_x_offset || v1.i_y_offset != v2.i_y_offset )
         return false;
+    if( v1.i_sar_num * v2.i_sar_den != v2.i_sar_num * v1.i_sar_den )
+        return false;
 
     if( v1.i_chroma == VLC_CODEC_RGB15 ||
         v1.i_chroma == VLC_CODEC_RGB16 ||



More information about the vlc-commits mailing list