You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avopt: fix segfault
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -45,7 +45,7 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas
|
||||
const AVOption *av_next_option(void *obj, const AVOption *last)
|
||||
{
|
||||
if (last && last[1].name) return ++last;
|
||||
else if (last) return NULL;
|
||||
else if (last || !(*(AVClass**)obj)->option->name) return NULL;
|
||||
else return (*(AVClass**)obj)->option;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user