diff options
author | Ramiro Polla <ramiro@lisha.ufsc.br> | 2007-01-13 16:51:42 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-01-13 16:51:42 +0000 |
commit | 27571d3de9c3660edc75d397d5fad5841cf0145c (patch) | |
tree | 10b6ef284efef2a6f9f7ef6781021aa238ade2de /ffmpeg.c | |
parent | 10ef990d96780d543fee7b2e9fdf7d4fa96e5c29 (diff) | |
download | ffmpeg-27571d3de9c3660edc75d397d5fad5841cf0145c.tar.gz |
Segmentation fault fix when no video device is specified.
patch by Ramiro Polla % ramiro A lisha P ufsc P br %
Originally committed as revision 7445 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |