summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-14 04:34:06 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-14 20:15:54 +0200
commit1e3104cd3cd12886f6054d56fab4b7bc1c31f594 (patch)
tree338861211d04010f75a4e9b64828b4a6a09cf21d /libavcodec
parentd4956b0bfbf92a4301529b35096a03f16f355a1b (diff)
downloadffmpeg-streaming-1e3104cd3cd12886f6054d56fab4b7bc1c31f594.zip
ffmpeg-streaming-1e3104cd3cd12886f6054d56fab4b7bc1c31f594.tar.gz
Add avpriv_dsputil_init() and use it in lavfi where relevant.
dsputil_init() is deprecated and not meant to be exported. ff_dsputil_init() is internal to libavcodec and thus can not be used. avpriv_dsputil_init() is the version shared between libraries. This commit fixes 3 unjustified libavfilter deprecated warnings.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dsputil.c5
-rw-r--r--libavcodec/dsputil.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 7fd9203..07d9376 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -2928,3 +2928,8 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
ff_dsputil_init(c, avctx);
}
+
+av_cold void avpriv_dsputil_init(DSPContext *c, AVCodecContext *avctx)
+{
+ ff_dsputil_init(c, avctx);
+}
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index b4e2ad5..07a95af 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -315,6 +315,7 @@ typedef struct DSPContext {
void ff_dsputil_static_init(void);
void ff_dsputil_init(DSPContext* p, AVCodecContext *avctx);
+void avpriv_dsputil_init(DSPContext* p, AVCodecContext *avctx);
attribute_deprecated void dsputil_init(DSPContext* c, AVCodecContext *avctx);
int ff_check_alignment(void);
OpenPOWER on IntegriCloud