projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ef990
)
Segmentation fault fix when no video device is specified.
author
Ramiro Polla
<ramiro@lisha.ufsc.br>
Sat, 13 Jan 2007 16:51:42 +0000
(16:51 +0000)
committer
Guillaume Poirier
<gpoirier@mplayerhq.hu>
Sat, 13 Jan 2007 16:51:42 +0000
(16:51 +0000)
patch by Ramiro Polla % ramiro A lisha P ufsc P br %
Originally committed as revision 7445 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
cdc78ea
..
d12af7b
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-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);