[FFmpeg-cvslog] r12300 - trunk/libavcodec/imgresample.c

Måns Rullgård mans
Mon Mar 3 21:24:09 CET 2008


michael <subversion at mplayerhq.hu> writes:

> Author: michael
> Date: Mon Mar  3 20:53:27 2008
> New Revision: 12300
>
> Log:
> Provide non null class name to avoid crash.
>
> Modified:
>    trunk/libavcodec/imgresample.c
>
> Modified: trunk/libavcodec/imgresample.c
> ==============================================================================
> --- trunk/libavcodec/imgresample.c	(original)
> +++ trunk/libavcodec/imgresample.c	Mon Mar  3 20:53:27 2008
> @@ -512,6 +512,8 @@ void img_resample_close(ImgReSampleConte
>      av_free(s);
>  }
>
> +static const AVClass context_class = { "imgresample", NULL, NULL };

Did you test this?  It seems to be this would always crash at log.c:39
calling avc->item_name(ptr), or did I miss something?  The old version
would have had the same problem.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list