summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index 3e10380222..acf94ba824 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -196,7 +196,7 @@ const AVOption *av_set_string2(void *obj, const char *name, const char *val, int
}
if(alloc){
- av_free((void*)(((uint8_t*)obj) + o->offset));
+ av_free(*(void**)(((uint8_t*)obj) + o->offset));
val= av_strdup(val);
}