From: Andreas Cadhalpun <[email protected]>

It is an internal swscale symbol and thus should not be exported.

Signed-off-by: Andreas Cadhalpun <[email protected]>
Signed-off-by: Diego Biurrun <[email protected]>
---
 libswscale/options.c          | 4 ++--
 libswscale/swscale_internal.h | 2 +-
 libswscale/utils.c            | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libswscale/options.c b/libswscale/options.c
index e7765d6..2371b67 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -66,9 +66,9 @@ static const AVOption swscale_options[] = {
     { NULL }
 };
 
-const AVClass sws_context_class = { "SWScaler", sws_context_to_name, 
swscale_options };
+const AVClass ff_sws_context_class = { "SWScaler", sws_context_to_name, 
swscale_options };
 
 const AVClass *sws_get_class(void)
 {
-    return &sws_context_class;
+    return &ff_sws_context_class;
 }
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 4026aa6..3f9a90e 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -714,7 +714,7 @@ extern const uint8_t ff_dither_8x8_220[8][8];
 
 extern const int32_t ff_yuv2rgb_coeffs[8][4];
 
-extern const AVClass sws_context_class;
+extern const AVClass ff_sws_context_class;
 
 /**
  * Set c->swscale to an unscaled converter if one exists for the specific
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 57220f4..6c71843 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -871,7 +871,7 @@ SwsContext *sws_alloc_context(void)
     SwsContext *c = av_mallocz(sizeof(SwsContext));
 
     if (c) {
-        c->av_class = &sws_context_class;
+        c->av_class = &ff_sws_context_class;
         av_opt_set_defaults(c);
     }
 
-- 
2.7.3

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to