summaryrefslogtreecommitdiff
path: root/libavcodec/sonic.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-29 13:38:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-03 15:42:57 +0200
commit48286d4d98e6417dff397d6f15e6b2ca3310f0ca (patch)
tree32ee2a1b56b100f84a1fffcf5e888ce2f3a49e49 /libavcodec/sonic.c
parentdea974456035d8d43c69a23b9db036a544bb0455 (diff)
avcodec/codec_internal: Add macro to set AVCodec.long_name
It reduces typing: Before this patch, there were 105 codecs whose long_name-definition exceeded the 80 char line length limit. Now there are only nine of them. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/sonic.c')
-rw-r--r--libavcodec/sonic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index 50fd171231..77bdb418a7 100644
--- a/libavcodec/sonic.c
+++ b/libavcodec/sonic.c
@@ -1078,7 +1078,7 @@ static int sonic_decode_frame(AVCodecContext *avctx, AVFrame *frame,
const FFCodec ff_sonic_decoder = {
.p.name = "sonic",
- .p.long_name = NULL_IF_CONFIG_SMALL("Sonic"),
+ CODEC_LONG_NAME("Sonic"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_SONIC,
.priv_data_size = sizeof(SonicContext),
@@ -1093,7 +1093,7 @@ const FFCodec ff_sonic_decoder = {
#if CONFIG_SONIC_ENCODER
const FFCodec ff_sonic_encoder = {
.p.name = "sonic",
- .p.long_name = NULL_IF_CONFIG_SMALL("Sonic"),
+ CODEC_LONG_NAME("Sonic"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_SONIC,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL,
@@ -1109,7 +1109,7 @@ const FFCodec ff_sonic_encoder = {
#if CONFIG_SONIC_LS_ENCODER
const FFCodec ff_sonic_ls_encoder = {
.p.name = "sonicls",
- .p.long_name = NULL_IF_CONFIG_SMALL("Sonic lossless"),
+ CODEC_LONG_NAME("Sonic lossless"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_SONIC_LS,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL,