diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-07-20 11:26:13 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-07-28 08:02:50 +0000 |
commit | c5fca0174db9ed45be821177f49bd9633152704d (patch) | |
tree | 99c8d47f6ad5b6d0334ab1c75e37f0d73177e51d /libavcodec/avcodec.h | |
parent | 42eb9154a83e9a7aedb1168b2f1112af765cf2b5 (diff) | |
download | ffmpeg-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.h | 10 |
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 |