[vlc-commits] vout: decklink: early fail on missing video mode

Francois Cartegnie git at videolan.org
Thu Mar 24 13:55:41 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 23 09:06:51 2016 -0400| [df9d528fc6efd66e1259f18dcf5f3834c35ac7b2] | committer: Francois Cartegnie

vout: decklink: early fail on missing video mode

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

 modules/video_output/decklink.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 7bbfe50..5a4b697 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -481,7 +481,7 @@ static struct decklink_sys_t *OpenDecklink(vout_display_t *vd)
         break;
     }
 
-    if (decklink_sys->i_width < 0 || decklink_sys->i_width & 1)
+    if (decklink_sys->i_width <= 0 || decklink_sys->i_width & 1)
     {
         msg_Err(vd, "Unknown video mode specified.");
         goto error;



More information about the vlc-commits mailing list