git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4d37f
)
opt_find: fix segfault
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Aug 2011 23:04:53 +0000
(
01:04
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Aug 2011 23:06:15 +0000
(
01:06
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/options.c
patch
|
blob
|
history
diff --git
a/libavcodec/options.c
b/libavcodec/options.c
index
d201072
..
78c2f72
100644
(file)
--- 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;
}