[vlc-devel] Resubmitting [PATCH] npapi plugin slave-input support. Add the ability to specify a sound source through slave-input, for example a v4l video capture device with alsa audio. Increased buffer size.

Jean-Baptiste Kempf jb at videolan.org
Fri Apr 13 12:36:03 CEST 2012


On Fri, Apr 13, 2012 at 09:24:34AM +0100, Tord Andersson wrote :
> +    char psz_input_slave_opts[255] = "";/* input slave options */

How can you be sure that it will not go above 255 ?

> +            strcat(psz_input_slave_opts, "--input-slave=");
> +            strncat(psz_input_slave_opts, argv[i], sizeof(psz_input_slave_opts) - strlen(psz_input_slave_opts) - 1);

asprintf?

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list