[vlc-devel] [PATCH 1/1] codec/dirac: Fix video format guessing

davidf+nntp at woaf.net davidf+nntp at woaf.net
Sat Nov 15 15:13:48 CET 2008


From: David Flynn <davidf at woaf.net>


Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
---
 modules/codec/dirac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/dirac.c b/modules/codec/dirac.c
index 67af49b..6354d33 100644
--- a/modules/codec/dirac.c
+++ b/modules/codec/dirac.c
@@ -351,7 +351,7 @@ static struct
     int i_approx_fps;
     VideoFormat i_vf;
 } dirac_format_guess[] = {
-    /* Important: Keep this list ordered in decending picture height */
+    /* Important: Keep this list ordered in ascending picture height */
     {1, 0, VIDEO_FORMAT_CUSTOM},
     {120, 15, VIDEO_FORMAT_QSIF525},
     {144, 12, VIDEO_FORMAT_QCIF},
@@ -481,7 +481,7 @@ static int OpenEncoder( vlc_object_t *p_this )
      */
     do
     {
-        if( dirac_format_guess[i].i_height < p_enc->fmt_in.video.i_height )
+        if( dirac_format_guess[i].i_height > p_enc->fmt_in.video.i_height )
         {
             guessed_video_fmt = dirac_format_guess[i-1].i_vf;
             break;
-- 
1.5.6.5




More information about the vlc-devel mailing list