From 0be2f1e3f08b1a339d4ad0e9fc23d24316082619 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 13 May 2008 00:49:38 +0000 Subject: [PATCH] Fix a typo. Patch by Stefano Sabatini stefanoDOTsabatini-lalaATpostePOINTit Originally committed as revision 13140 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/opt.c b/libavcodec/opt.c index 928580857a..7e0f527350 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -172,7 +172,7 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){ else if(!strcmp(buf, "none" )) d= 0; else if(!strcmp(buf, "all" )) d= ~0; else { - if (!error) + if (error) av_log(NULL, AV_LOG_ERROR, "Unable to parse option value \"%s\": %s\n", val, error); return NULL; }