[FFmpeg-devel] [PATCH] lavr: deprecate the entire library
Rostislav Pehlivanov
atomnuker at gmail.com
Fri Nov 17 17:58:16 EET 2017
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
---
doc/APIchanges | 5 +++++
libavresample/utils.c | 3 +++
2 files changed, 8 insertions(+)
diff --git a/doc/APIchanges b/doc/APIchanges
index d336f6ce22..22c7b5a0d0 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,6 +15,11 @@ libavutil: 2017-10-21
API changes, most recent first:
+2017-xx-xx - xxxxxxx - lavr 4.0.0 - avresample.h
+ Deprecate the entire library. It was unmaintained and redundant
+ as libswresample did everything it did better, faster, with more
+ control and with a better, slightly higher level API.
+
2017-xx-xx - xxxxxxx - lavc 58.3.100 - avcodec.h
Add avcodec_get_hw_frames_parameters().
diff --git a/libavresample/utils.c b/libavresample/utils.c
index b4fb906556..3e629fe901 100644
--- a/libavresample/utils.c
+++ b/libavresample/utils.c
@@ -37,6 +37,9 @@ int avresample_open(AVAudioResampleContext *avr)
{
int ret;
+ av_log(avr, AV_LOG_WARNING, "This library is being deprecated in favor of libswresample, "
+ "please migrate your program.");
+
if (avresample_is_open(avr)) {
av_log(avr, AV_LOG_ERROR, "The resampling context is already open.\n");
return AVERROR(EINVAL);
--
2.15.0.291.g0d8980c5de
More information about the ffmpeg-devel
mailing list