]> git.sesse.net Git - ffmpeg/commitdiff
lavc: deprecate CODEC_CAP_NEG_LINESIZES
authorAnton Khirnov <anton@khirnov.net>
Mon, 4 Nov 2013 11:07:24 +0000 (12:07 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 16 Nov 2013 11:41:40 +0000 (12:41 +0100)
It was never used in any codec since it was added 3 years ago.

libavcodec/avcodec.h
libavcodec/version.h

index 79c6efc3a2856f74dad67878ff33478198d04ea1..f2fd0dc3d48a762b433fd231767a776398dee28a 100644 (file)
@@ -762,10 +762,12 @@ typedef struct RcOverride{
  * Codec should fill in channel configuration and samplerate instead of container
  */
 #define CODEC_CAP_CHANNEL_CONF     0x0400
+#if FF_API_NEG_LINESIZES
 /**
- * Codec is able to deal with negative linesizes
+ * @deprecated no codecs use this capability
  */
 #define CODEC_CAP_NEG_LINESIZES    0x0800
+#endif
 /**
  * Codec supports frame-level multithreading.
  */
index e9d09ac98e7fb2209ff0b0e1ea1186fee5019c07..c828dc8e6120c0fb8c9dc5c1ef70ede4ea9d7874 100644 (file)
 #ifndef FF_API_FAST_MALLOC
 #define FF_API_FAST_MALLOC       (LIBAVCODEC_VERSION_MAJOR < 56)
 #endif
+#ifndef FF_API_NEG_LINESIZES
+#define FF_API_NEG_LINESIZES     (LIBAVCODEC_VERSION_MAJOR < 56)
+#endif
 
 #endif /* AVCODEC_VERSION_H */