It has been deprecated some time ago, but was forgotten during the last
bump.
---
 libavcodec/avcodec.h |    4 ++++
 libavcodec/version.h |    3 +++
 2 files changed, 7 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index d8e5d5e..8a3aa76 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2403,12 +2403,16 @@ typedef struct AVCodecContext {
      */
     int bits_per_raw_sample;
 
+#if FF_API_LOWRES
     /**
      * low resolution decoding, 1-> 1/2 size, 2->1/4 size
      * - encoding: unused
      * - decoding: Set by user.
+     *
+     * @deprecated use decoder private options instead
      */
     attribute_deprecated int lowres;
+#endif
 
     /**
      * the picture in the bitstream
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 05ed6d0..2165a3d 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -61,5 +61,8 @@
 #ifndef FF_API_MISSING_SAMPLE
 #define FF_API_MISSING_SAMPLE    (LIBAVCODEC_VERSION_MAJOR < 56)
 #endif
+#ifndef FF_API_LOWRES
+#define FF_API_LOWRES            (LIBAVCODEC_VERSION_MAJOR < 56)
+#endif
 
 #endif /* AVCODEC_VERSION_H */
-- 
1.7.10.4

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

Reply via email to