Fix crash on analysing audio (and possibly DCP creation) with resampled
content.

Reported-by: Matthias Damm