[vlc-commits] Rawvideo: we can have a 0 visible_*, since we copy from width|height
Jean-Baptiste Kempf
git at videolan.org
Thu Mar 20 13:12:31 CET 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Mar 20 13:11:04 2014 +0100| [9b58a259ac8e4ba7d7389adf872d9a0b92cdb13a] | committer: Jean-Baptiste Kempf
Rawvideo: we can have a 0 visible_*, since we copy from width|height
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b58a259ac8e4ba7d7389adf872d9a0b92cdb13a
---
modules/codec/rawvideo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index b158651..884218b 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -95,8 +95,8 @@ static int OpenDecoder( vlc_object_t *p_this )
if( dsc == NULL || dsc->plane_count == 0 )
return VLC_EGENERIC;
- if( p_dec->fmt_in.video.i_visible_width <= 0
- || p_dec->fmt_in.video.i_visible_height <= 0 )
+ if( p_dec->fmt_in.video.i_visible_width < 0
+ || p_dec->fmt_in.video.i_visible_height < 0 )
{
msg_Err( p_dec, "invalid display size %dx%d",
p_dec->fmt_in.video.i_width, p_dec->fmt_in.video.i_height );
More information about the vlc-commits
mailing list