add context_to_name func for logging

Originally committed as revision 13610 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-06-01 20:51:44 +00:00
parent 2d73e6c8d7
commit 778346e3da

View File

@ -512,7 +512,12 @@ void img_resample_close(ImgReSampleContext *s)
av_free(s); av_free(s);
} }
static const AVClass context_class = { "imgresample", NULL, NULL }; static const char *context_to_name(void* ptr)
{
return "imgconvert";
}
static const AVClass context_class = { "imgresample", context_to_name, NULL };
struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
int dstW, int dstH, int dstFormat, int dstW, int dstH, int dstFormat,