avcodec/ffwavesynth: Check if there is enough extradata before allocation