[vlc-devel] commit: Fix warning in rawvid demxuer. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Mon Mar 17 08:51:46 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 17 00:46:46 2008 -0700| [2f541e74db27020b92c9603d1d4dfebcd05a300e]
Fix warning in rawvid demxuer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f541e74db27020b92c9603d1d4dfebcd05a300e
---
modules/demux/rawvid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c
index 775d72d..19e27b6 100644
--- a/modules/demux/rawvid.c
+++ b/modules/demux/rawvid.c
@@ -181,7 +181,7 @@ static int Open( vlc_object_t * p_this )
{
char *psz;
char *buf;
- int a, b;
+ int a, b = 1;
psz = stream_ReadLine( p_demux->s );
/* TODO: handle interlacing */
@@ -240,7 +240,7 @@ static int Open( vlc_object_t * p_this )
{
psz_chroma = strdup( "I444" );
}
- else if( !strncmp( buf, "mono", 3 ) )
+ else if( !strncmp( buf, "mono", 4 ) )
{
psz_chroma = strdup( "GREY" );
}
More information about the vlc-devel
mailing list