summaryrefslogtreecommitdiffstats
path: root/core/av_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/av_opts.c')
-rw-r--r--core/av_opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/av_opts.c b/core/av_opts.c
index bc2e392c5f..777a1eec5a 100644
--- a/core/av_opts.c
+++ b/core/av_opts.c
@@ -28,6 +28,10 @@
int parse_avopts(void *v, char *str){
char *start;
+
+ if (!str)
+ return 0;
+
start= str= strdup(str);
while(str && *str){