mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
Check for error so that
avfilter_open(av_filter_get_by_name(...etc...)) fails gracefully. Commited in SoC by Vitor Sessak on 2007-10-29 16:00:27 Originally committed as revision 12024 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4d7c9be36d
commit
8f618f4c04
@ -363,7 +363,12 @@ static const char *filter_name(void *p)
|
||||
|
||||
AVFilterContext *avfilter_open(AVFilter *filter, char *inst_name)
|
||||
{
|
||||
AVFilterContext *ret = av_malloc(sizeof(AVFilterContext));
|
||||
AVFilterContext *ret;
|
||||
|
||||
if (!filter)
|
||||
return 0;
|
||||
|
||||
ret = av_malloc(sizeof(AVFilterContext));
|
||||
|
||||
ret->av_class = av_mallocz(sizeof(AVClass));
|
||||
ret->av_class->item_name = filter_name;
|
||||
|
Loading…
Reference in New Issue
Block a user