[vlc-commits] rawvideo: fix handling of zero dimensions
Rémi Denis-Courmont
git at videolan.org
Thu Mar 20 16:26:02 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 20 17:25:18 2014 +0200| [f93eaec827d64b3ec361c61a977243b7d85701aa] | committer: Rémi Denis-Courmont
rawvideo: fix handling of zero dimensions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f93eaec827d64b3ec361c61a977243b7d85701aa
---
modules/codec/rawvideo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index 884218b..3d68afb 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -95,8 +95,7 @@ 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_width <= 0 || p_dec->fmt_in.video.i_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