[Ffmpeg-cvslog] r7445 - trunk/ffmpeg.c

gpoirier subversion
Sat Jan 13 17:51:42 CET 2007


Author: gpoirier
Date: Sat Jan 13 17:51:42 2007
New Revision: 7445

Modified:
   trunk/ffmpeg.c

Log:
Segmentation fault fix when no video device is specified.
patch by Ramiro Polla % ramiro A lisha P ufsc P br %


Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sat Jan 13 17:51:42 2007
@@ -3235,7 +3235,7 @@
     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);




More information about the ffmpeg-cvslog mailing list