summaryrefslogtreecommitdiff
path: root/libavcodec/codec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-03-08 11:26:32 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-20 00:20:13 +0200
commitdd846bc4a9163f875cc2c4e99325c1a7b4ab8e7d (patch)
tree454f000005c2df2d1c1867239ea50534678b2583 /libavcodec/codec.h
parent9c489a0f3a954d8b63d0e8dc2a387ff8f2a8aa3a (diff)
downloadffmpeg-dd846bc4a9163f875cc2c4e99325c1a7b4ab8e7d.tar.gz
lavc: deprecate AV_CODEC_(FLAG|CAP)_TRUNCATED
It is supported only by a few decoders (h263, h263p, mpeg(1|2|)video and mpeg4) and is entirely redundant with parsers. Furthermore, using it leads to missing frames, as flushing the decoder at the end does not work properly. Co-authored-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/codec.h')
-rw-r--r--libavcodec/codec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/codec.h b/libavcodec/codec.h
index 8f12705066..a8147ec21f 100644
--- a/libavcodec/codec.h
+++ b/libavcodec/codec.h
@@ -50,7 +50,12 @@
* avcodec_default_get_buffer2 or avcodec_default_get_encode_buffer.
*/
#define AV_CODEC_CAP_DR1 (1 << 1)
+#if FF_API_FLAG_TRUNCATED
+/**
+ * @deprecated Use parsers to always send proper frames.
+ */
#define AV_CODEC_CAP_TRUNCATED (1 << 3)
+#endif
/**
* Encoder or decoder requires flushing with NULL input at the end in order to
* give the complete and correct output.