Forward-port avcodec_decode_audio4 error handling patch from v1.