Commit a7740b3c authored by gpoirier's avatar gpoirier

Segmentation fault fix when no video device is specified.

patch by Ramiro Polla % ramiro A lisha P ufsc P br %


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7445 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2bd9db44
......@@ -3235,7 +3235,7 @@ static void prepare_grab(void)
if (has_video) {
AVInputFormat *fmt1;
#warning FIXME: find a better interface
if(!strncmp(video_device,"x11:",4)) {
if(video_device&&!strncmp(video_device,"x11:",4)) {
video_grab_format="x11grab";
}
fmt1 = av_find_input_format(video_grab_format);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment