]> git.sesse.net Git - ffmpeg/commitdiff
add context_to_name func for logging
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 1 Jun 2008 20:51:44 +0000 (20:51 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 1 Jun 2008 20:51:44 +0000 (20:51 +0000)
Originally committed as revision 13610 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgresample.c

index d2c5364b45ca50db052bbad46e53cb6030104361..8da1b4d315f3fb9392c60bafafe55437f8ac56cc 100644 (file)
@@ -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,