From 778346e3da0928b7b2aafabd1a13f4b0d9edffdb Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 1 Jun 2008 20:51:44 +0000 Subject: [PATCH] add context_to_name func for logging Originally committed as revision 13610 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgresample.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c index d2c5364b45..8da1b4d315 100644 --- a/libavcodec/imgresample.c +++ b/libavcodec/imgresample.c @@ -512,7 +512,12 @@ void img_resample_close(ImgReSampleContext *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, int dstW, int dstH, int dstFormat,