diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-01-02 23:08:00 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-01-08 05:05:10 +0100 |
commit | f25b1742f00a57d5564fa8cc1db377b431ed0c40 (patch) | |
tree | c7c1bb01b808b2714a7e2fdc064d400d1ac0825d /libavcodec/metasound.c | |
parent | 9c318b30f3526195eb465d2afda0be511806c89c (diff) |
avcodec/metasound: Deduplicate data
Saves about 13KB; also reduces the amount of relocations.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/metasound.c')
-rw-r--r-- | libavcodec/metasound.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/metasound.c b/libavcodec/metasound.c index 396310ba1e..27cf1dd83f 100644 --- a/libavcodec/metasound.c +++ b/libavcodec/metasound.c @@ -341,22 +341,16 @@ static av_cold int metasound_decode_init(AVCodecContext *avctx) tctx->mtab = &ff_metasound_mode2224s; break; case (1 << 16) + (44 << 8) + 32: - tctx->mtab = &ff_metasound_mode4432; - break; case (2 << 16) + (44 << 8) + 32: - tctx->mtab = &ff_metasound_mode4432s; + tctx->mtab = &ff_metasound_mode4432; break; case (1 << 16) + (44 << 8) + 40: - tctx->mtab = &ff_metasound_mode4440; - break; case (2 << 16) + (44 << 8) + 40: - tctx->mtab = &ff_metasound_mode4440s; + tctx->mtab = &ff_metasound_mode4440; break; case (1 << 16) + (44 << 8) + 48: - tctx->mtab = &ff_metasound_mode4448; - break; case (2 << 16) + (44 << 8) + 48: - tctx->mtab = &ff_metasound_mode4448s; + tctx->mtab = &ff_metasound_mode4448; break; default: av_log(avctx, AV_LOG_ERROR, |