[vlc-devel] commit: codec/dirac: Fix video format guessing (David Flynn )

git version control git at videolan.org
Sat Nov 15 19:39:37 CET 2008


vlc | branch: master | David Flynn <davidf at woaf.net> | Sat Nov 15 14:13:48 2008 +0000| [4ec42b9f6caa614af20a49ab7179a6b2ddbe8635] | committer: Laurent Aimar 

codec/dirac: Fix video format guessing

Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
Signed-off-by: Laurent Aimar <fenrir at videolan.org>

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

 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;




More information about the vlc-devel mailing list