summaryrefslogtreecommitdiff
path: root/libavcodec/codec_id.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-27 18:41:40 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-31 09:00:56 +0100
commite3a99041b80e915efc021f93eef1c3fddf41199c (patch)
tree061dd72e7b7be419504d0975aecfd0f99253a10a /libavcodec/codec_id.h
parent229f3259f80d824c7e7bb3bd5935ae4bc75d5374 (diff)
downloadffmpeg-e3a99041b80e915efc021f93eef1c3fddf41199c.tar.gz
lavc: add null codecs
They discard all input without ever returning any output. Useful for development.
Diffstat (limited to 'libavcodec/codec_id.h')
-rw-r--r--libavcodec/codec_id.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h
index 3e84098f35..0c574c9619 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -590,6 +590,16 @@ enum AVCodecID {
* stream (only used by libavformat) */
AV_CODEC_ID_FFMETADATA = 0x21000, ///< Dummy codec for streams containing only metadata information.
AV_CODEC_ID_WRAPPED_AVFRAME = 0x21001, ///< Passthrough codec, AVFrames wrapped in AVPacket
+ /**
+ * Dummy null video codec, useful mainly for development and debugging.
+ * Null encoder/decoder discard all input and never return any output.
+ */
+ AV_CODEC_ID_VNULL,
+ /**
+ * Dummy null audio codec, useful mainly for development and debugging.
+ * Null encoder/decoder discard all input and never return any output.
+ */
+ AV_CODEC_ID_ANULL,
};
/**