fix for own error in applying patch

This commit is contained in:
Campbell Barton 2012-05-26 13:08:42 +00:00
parent 63788b47d6
commit ba5e13912d

@ -589,6 +589,7 @@ void VideoFFmpeg::openCam (char * file, short camIdx)
AVFormatParameters formatParams;
AVRational frameRate;
char filename[28], rateStr[20];
char *p;
do_init_ffmpeg();
@ -630,8 +631,6 @@ void VideoFFmpeg::openCam (char * file, short camIdx)
return;
if (file && strncmp(file, "/dev", 4) == 0)
{
char *p;
// user does not specify a driver
strncpy(filename, file, sizeof(filename));
filename[sizeof(filename)-1] = 0;