Revision 8f618f4c libavfilter/avfilter.c

View differences:

libavfilter/avfilter.c
363 363

  
364 364
AVFilterContext *avfilter_open(AVFilter *filter, char *inst_name)
365 365
{
366
    AVFilterContext *ret = av_malloc(sizeof(AVFilterContext));
366
    AVFilterContext *ret;
367

  
368
    if (!filter)
369
        return 0;
370

  
371
    ret = av_malloc(sizeof(AVFilterContext));
367 372

  
368 373
    ret->av_class = av_mallocz(sizeof(AVClass));
369 374
    ret->av_class->item_name = filter_name;

Also available in: Unified diff