[vlc-commits] V4L2: parse v4l2://:standard=XXX like --v4l2-standard=XXX...
Rémi Denis-Courmont
git at videolan.org
Thu Sep 1 17:12:36 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 1 18:11:17 2011 +0300| [79bb6258086845d08fa1db5861dffd371e85c44c] | committer: Rémi Denis-Courmont
V4L2: parse v4l2://:standard=XXX like --v4l2-standard=XXX...
...and fix buffer read overflow.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=79bb6258086845d08fa1db5861dffd371e85c44c
---
modules/access/v4l2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index d29aec6..d0e14db 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -792,7 +792,7 @@ static void ParseMRL( demux_sys_t *p_sys, char *psz_path, vlc_object_t *p_obj )
}
if( i == ARRAY_SIZE(psz_standards_list_text) )
- p_sys->i_selected_standard_id = i_standards_list[strtol( psz_parser, &psz_parser, 0 )];
+ p_sys->i_selected_standard_id = strtol( psz_parser, &psz_parser, 0 );
}
else if( !strncmp( psz_parser, "chroma=", strlen( "chroma=" ) ) )
{
More information about the vlc-commits
mailing list