lavc: schedule AVCodecContext.lowres for removal on next bump.
authorAnton Khirnov <anton@khirnov.net>
Tue, 30 Apr 2013 10:17:33 +0000 (12:17 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 3 May 2013 06:07:35 +0000 (08:07 +0200)
It has been deprecated some time ago, but was forgotten during the last
bump.

libavcodec/avcodec.h
libavcodec/version.h

index 2085eb6..c265d87 100644 (file)
@@ -2408,12 +2408,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
index 05ed6d0..2165a3d 100644 (file)
@@ -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 */