Browse Source

AVOptions: av_set_string3() allow NULL strings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
3862ebba23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/opt.c

+ 1
- 1
libavutil/opt.c View File

@@ -119,7 +119,7 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
*o_out = o;
if (!o)
return AVERROR_OPTION_NOT_FOUND;
if (!val || o->offset<=0)
if ((!val && o->type != FF_OPT_TYPE_STRING) || o->offset<=0)
return AVERROR(EINVAL);

if (o->type == FF_OPT_TYPE_BINARY) {


Loading…
Cancel
Save