aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-20 11:26:13 +0000
committerAnton Khirnov <anton@khirnov.net>2014-07-28 08:02:50 +0000
commitc5fca0174db9ed45be821177f49bd9633152704d (patch)
tree99c8d47f6ad5b6d0334ab1c75e37f0d73177e51d /libavcodec/avcodec.h
parent42eb9154a83e9a7aedb1168b2f1112af765cf2b5 (diff)
downloadffmpeg-c5fca0174db9ed45be821177f49bd9633152704d.tar.gz
lavc: add a property for marking codecs that support frame reordering
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8f93911019..7385dd36a5 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -509,6 +509,16 @@ typedef struct AVCodecDescriptor {
* Codec supports lossless compression. Audio and video codecs only.
*/
#define AV_CODEC_PROP_LOSSLESS (1 << 2)
+/**
+ * Codec supports frame reordering. That is, the coded order (the order in which
+ * the encoded packets are output by the encoders / stored / input to the
+ * decoders) may be different from the presentation order of the corresponding
+ * frames.
+ *
+ * For codecs that do not have this property set, PTS and DTS should always be
+ * equal.
+ */
+#define AV_CODEC_PROP_REORDER (1 << 3)
/**
* @ingroup lavc_decoding