diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-27 18:41:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-31 09:00:56 +0100 |
commit | e3a99041b80e915efc021f93eef1c3fddf41199c (patch) | |
tree | 061dd72e7b7be419504d0975aecfd0f99253a10a /libavcodec/codec_id.h | |
parent | 229f3259f80d824c7e7bb3bd5935ae4bc75d5374 (diff) | |
download | ffmpeg-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.h | 10 |
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, }; /** |