summaryrefslogtreecommitdiff
path: root/libavformat/version.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-28 14:59:20 +0100
committerAnton Khirnov <anton@khirnov.net>2013-10-29 14:19:10 +0100
commit8b64c2ba0382892cad9e1a5ba601696d4cbb4d04 (patch)
tree2d6ee9d2672e8275205e70444103a61701388e3d /libavformat/version.h
parent25c7db7cc99d74fe6fb56a6fd52c9b5f1591e448 (diff)
lavc: add a dummy field to AVStream to preserve ABI compatibility for avconv
avconv abuses the API by accessing AVStream.parser (which is private). Removing AVStream.reference_dts in 2ba68dd044ca8fc591139c05563840f546a9c0c0 breaks ABI compatibility for an old avconv using a newer lavf. Fix this by adding a dummy field until the next bump.
Diffstat (limited to 'libavformat/version.h')
-rw-r--r--libavformat/version.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/version.h b/libavformat/version.h
index 43431a56f4..791933f307 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -48,5 +48,8 @@
* dropped at a future version bump. The defines themselves are not part of
* the public API and may change, break or disappear at any time.
*/
+#ifndef FF_API_REFERENCE_DTS
+#define FF_API_REFERENCE_DTS (LIBAVFORMAT_VERSION_MAJOR < 56)
+#endif
#endif /* AVFORMAT_VERSION_H */