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_desc.c | |
parent | 229f3259f80d824c7e7bb3bd5935ae4bc75d5374 (diff) |
lavc: add null codecs
They discard all input without ever returning any output. Useful for
development.
Diffstat (limited to 'libavcodec/codec_desc.c')
-rw-r--r-- | libavcodec/codec_desc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index fbb6604f76..8ab228d846 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -3625,6 +3625,18 @@ static const AVCodecDescriptor codec_descriptors[] = { .long_name = NULL_IF_CONFIG_SMALL("AVFrame to AVPacket passthrough"), .props = AV_CODEC_PROP_LOSSLESS, }, + { + .id = AV_CODEC_ID_VNULL, + .type = AVMEDIA_TYPE_VIDEO, + .name = "vnull", + .long_name = NULL_IF_CONFIG_SMALL("Null video codec"), + }, + { + .id = AV_CODEC_ID_ANULL, + .type = AVMEDIA_TYPE_AUDIO, + .name = "anull", + .long_name = NULL_IF_CONFIG_SMALL("Null audio codec"), + }, }; static int descriptor_compare(const void *key, const void *member) |