avcodec/adpcmenc: #if disabled code away, fix build without ADPCM_ARGO
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 8 Jun 2021 00:36:00 +0000 (02:36 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 22 Jul 2021 05:35:31 +0000 (07:35 +0200)
commit63f736f47667e5106c38ed4083fc22ebb807225b
tree9bd3ba908e1f29933ab023a959aaf6bfa6322a81
parent10f8f06a56ef9ea27595269a8a747026433b0673
avcodec/adpcmenc: #if disabled code away, fix build without ADPCM_ARGO

The adpcm_argo encoder does not use the data from adpcm_data.c directly;
instead it shares a function with the adpcm_argo decoder that is in
adpcm.c. When all the ADPCM decoders and the adpcm_argo encoder are
disabled, adpcm.c is not compiled; yet the code in adpcmenc.c calling
said function from adpcm.c is still present, leading to link errors.

Fix this by disabling the code belonging to disabled codecs in
adpcmenc.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/adpcmenc.c