FFmpeg - convert to 24-bit WAV

Sometimes its needed to convert audio file to WAV. FFmpeg by default creates 16-bit WAV file even if input is 24-bit. This is not desirable behaviour. To get 24-bit WAV you need to specify pcm_s24le codec on command line:

ffmpeg -i <input file> -c:a pcm_s24le <output.wav>