wavarc: fix decoding of 16-bit compression level 0
decompresses correctly with wa32.exe
./ffmpeg -i 16_33_M_C0.WA -y out.wav
ffmpeg version N-109771-g93a9ee7afd Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 57. 44.100 / 57. 44.100
libavcodec 59. 63.100 / 59. 63.100
libavformat 59. 38.100 / 59. 38.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 56.100 / 8. 56.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
Input #0, wavarc, from '16_33_M_C0.WA':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: wavarc (0CPY / 0x59504330), 33333 Hz, mono, s16p
Stream mapping:
Stream #0:0 -> #0:0 (wavarc (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'out.wav':
Metadata:
ISFT : Lavf59.38.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 33333 Hz, mono, s16, 533 kb/s
Metadata:
encoder : Lavc59.63.100 pcm_s16le
[wavarc @ 0x55d22115f700] get_buffer() failedspeed= 0x
Error while decoding stream #0:0: Invalid data found when processing input
size= 651kB time=00:00:09.98 bitrate= 534.2kbits/s speed= 845x
video:0kB audio:651kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.011700%
the output is ok now, but there is still "get_buffer() failed" error message.
not sure if this is intended