changeset 22220:3687d95f3715

Don't segfault if no -format is given for lavf
author uau
date Fri, 16 Feb 2007 23:09:13 +0000
parents 7f6edf51bc14
children 09c112581336
files libmpdemux/muxer_lavf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c	Fri Feb 16 21:17:41 2007 +0000
+++ b/libmpdemux/muxer_lavf.c	Fri Feb 16 23:09:13 2007 +0000
@@ -338,7 +338,7 @@
 
 	av_register_all();
 
-	if (strcmp(conf_format, "help") == 0) {
+	if (conf_format && strcmp(conf_format, "help") == 0) {
 		list_formats();
 		return 0;
 	}