diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-08-13 01:04:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-13 01:06:15 +0200 |
commit | 7b382ab6b03adbf9642d86fd8a8a54b61b67d836 (patch) | |
tree | 152d81e146af38c03684e7a341a61633209f3ff0 /libavcodec | |
parent | 9f4d37f450897f86a9209f6c0aa28d5a3398a218 (diff) | |
download | ffmpeg-7b382ab6b03adbf9642d86fd8a8a54b61b67d836.tar.gz |
opt_find: fix segfault
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index d201072874..78c2f726a2 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -45,7 +45,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, i AVCodec *c = NULL; if (s->priv_data) { - if (s->codec->priv_class) + if (s->codec && s->codec->priv_class) return av_opt_find(s->priv_data, name, unit, opt_flags, search_flags); return NULL; } |